Printing problem in AREV (AREV Specific)
At 26 APR 2005 12:32:11AM Chang Lee Churn wrote:
I have tried the following command
FORCEDOS /D X:\AREV X:\AREV\AREV.EXE myaccount /XM4096
it seems to work for my first line of print out, the second line print out comes with the some fuzzy characters
like Matt Sorrell mentioned as page eject character.
Currently, the problem I faced now is it only affects 1 module of my program. but not the other.
A) Tag Printing Entry
B) Tag Printing Maintenance
Module A is entry of new data
Module B is modification of current data
Module B can print out the report correctly without the so called page eject character. But Module A always print with a page eject character in each print out.
Both are almost similar in function. Except that Module A is storing new data and printing the report. Module B is retrieving data and printing the report.
1) Could the function of Module A is the cause of the page eject problem?
2) How can I solve this problem?
3) I also use redirect printout from LPT1 to COM1 printout with NET USE, but this problem only affects Module A, but NOT Module B.
4) I using the following commands before the PRINT line:
-PERFORM "PC EXIT NET USE LPT1 /DELETE"
-PERFORM "PC EXIT NET USE LPT1 \\ACC05\ACC05
password /user:mis1Administrator-PERFORM "PC EXIT MODE LPT1"
-PRINTER ON
Anyone can help me on this?
Thank you.
At 26 APR 2005 03:22AM Chang Lee Churn wrote:
Correction :
-PERFORM "PC EXIT NET USE LPT1 /DELETE"
-PERFORM "PC EXIT NET USE LPT1 \\ACC05\ACC05
password /user:mis1\Administrator
-PERFORM "PC EXIT MODE LPT1"
-PRINTER ON
At 26 APR 2005 01:08PM Warren Auyong wrote:
From RBasic just do:
PCPERFORM "EXIT NET USE LPT1 /DELETE"
or
SUSPEND "EXIT NET USE LPT1 /DELETE"
etc.
You may not need the "EXIT" command either.
What you are doing is calling the command shell through a TCL shell which normally has the "press any key" prompt after execution of the command shell.
By using the RBasic PCPERFORM or SUSPEND statements you will call the command shell directly and thus avoid the prompt.