I posted this message last week but it seems to have disappeared from the board. I got a response notification in my email but the link comes up dead. I'm hoping the same member or others may have a solution.
Here we go:
Continuation on an old problem but i'm going to try this another way.
Using vfp 8.0, w2k and an hplj9000dns I want to combine two reports and print them as one print job so that they will be stapled by the printer(obviously, this printer has the ability to do so).
So this is what I am doing:
I have two files; file1 and file2. File1 contains the data that Report1 will print and File2 contains the data that Report2 will print. Report1 prints on color stock from tray3 on the printer and report2 prints on letterhead from tray4. I currently print both reports to a file, combine and print as a single job however the printer still seperates them, prints report1 ejects(there is only one page in report1) and then prints report2 and staples if there is more than one page.
SELECT file1
REPORT FORM Report1.frx NEXT 1 TO FILE "c:\tempfiles\myReport.prn" NOCONSOLE
SELECT file2
GOTO file1.posrec
REPORT FORM Report2.frx NEXT report1.tot_prc2 TO FILE "c:\tempfiles\report2.prn" NOCONSOLE
&& Copy report1 temp file to a new file.
STRTOFILE(FILETOSTR("c:\tempfiles\report1.prn"),"c:\tempfiles\myReport.prn",0)
&& add report2 from temp file file already containing report1.
STRTOFILE(FILETOSTR("c:\tempfiles\report2.prn"),"c:\tempfiles\myReport.prn",1)
&& Print report to lpt5. lpt5 is currently set to hplj9000dns printer.
GOTO report1.posrec
APPEND MEMO myMemo FROM c:\tempfiles\BatchVoucher.prn
COPY MEMO myMemo TO lpt5
This used to work but all of a sudden it stopped without having made any changes to the program code and I don't beleive I changed any printer settings. I'm pretty much the only person who uses this printer.
Anyone have any experience or any ideas on how to accomplish what I want.
Here we go:
Continuation on an old problem but i'm going to try this another way.
Using vfp 8.0, w2k and an hplj9000dns I want to combine two reports and print them as one print job so that they will be stapled by the printer(obviously, this printer has the ability to do so).
So this is what I am doing:
I have two files; file1 and file2. File1 contains the data that Report1 will print and File2 contains the data that Report2 will print. Report1 prints on color stock from tray3 on the printer and report2 prints on letterhead from tray4. I currently print both reports to a file, combine and print as a single job however the printer still seperates them, prints report1 ejects(there is only one page in report1) and then prints report2 and staples if there is more than one page.
SELECT file1
REPORT FORM Report1.frx NEXT 1 TO FILE "c:\tempfiles\myReport.prn" NOCONSOLE
SELECT file2
GOTO file1.posrec
REPORT FORM Report2.frx NEXT report1.tot_prc2 TO FILE "c:\tempfiles\report2.prn" NOCONSOLE
&& Copy report1 temp file to a new file.
STRTOFILE(FILETOSTR("c:\tempfiles\report1.prn"),"c:\tempfiles\myReport.prn",0)
&& add report2 from temp file file already containing report1.
STRTOFILE(FILETOSTR("c:\tempfiles\report2.prn"),"c:\tempfiles\myReport.prn",1)
&& Print report to lpt5. lpt5 is currently set to hplj9000dns printer.
GOTO report1.posrec
APPEND MEMO myMemo FROM c:\tempfiles\BatchVoucher.prn
COPY MEMO myMemo TO lpt5
This used to work but all of a sudden it stopped without having made any changes to the program code and I don't beleive I changed any printer settings. I'm pretty much the only person who uses this printer.
Anyone have any experience or any ideas on how to accomplish what I want.