Saturday, February 16, 2008

display excel from TOMCAT site

when display a excel file from a tomcat server, the web page show the text format of the excel file. In order to display it correctly, add following code in the web.xml in conf directory.


mime-mapping
extension xls extension
mime-type application/vnd.ms-excel MIME-TYPE
/MIME-MAPPING


also, you need add your site as intranet in web explorer, which meaning the security for your site is very low.

Sunday, February 10, 2008

set Xerox C450 as Iseries printer

first, create a Workstation customizing object source in library/source.object

the source is http://docs.google.com/Doc?id=dgts9g23_10g594d9cr .

sencond, run CRTWSCST command to generate Workstation customizing object from the source file.

third, run WRKCFGSTS, create a new printer, set 'Manufacturer type and model' as '*WSCSTA4', and set 'Workstation customizing object' as the object created in sencond step.

after printer created, run

CHGWTR WTR(printer) FORMTYPE(*ALL *NOMSG)

to prevent form type error message.