auto-print oracle report [message #88108] |
Thu, 14 March 2002 21:56 |
CT
Messages: 3 Registered: July 1999
|
Junior Member |
|
|
hi all...
i created a batch file to auto-print an oracle report upon executing the batch file.
the report is successfully printed upon clicking on the batch file but it is not printed out when i execute the batch file by calling it from a visual basic program, instead i encounter a report error, REP-3002(Error initializing a printer).
please take note that the batch file is located in a windows 2000 server and a printer is already installed on the server.
The batch file has the following code:-
D:ORACLEDEV6iBINRWRUN60.EXE REPORT=D:SIMPLEPROGRAMSFWR_DISCREPANCY_LIST.REP USERID =WMS/WMS@ORCL p_ware_id=%1 p_arrival_no=%2 PARAMFORM =NO DESTYPE =PRINTER DESFORMAT=dflt TRACEFILE =C:TRACE.LOG PRINTJOB =NO
please help...
i am not sure why it is not able to print out the report upon calling/executing the batch file from visual basic...
|
|
|
|
Re: auto-print oracle report [message #89361 is a reply to message #88108] |
Mon, 23 February 2004 06:49 |
Salman Khan
Messages: 51 Registered: September 2000
|
Member |
|
|
Thanks For the above code coz I was Looking for this code and I tried its working at my place, and I saved the batch file in Drive C: and Im executing it from Forms using Code Host('C:mybatch.bat'); and Im getting the print but after printing its not quiting the dos window even i write down Exit in Batch File Please Help Early....
|
|
|
|