I've got a main module that calls a print program (in a dll) that writes the report to a file. The dll then calls the preview/print dll.
There it's previewed/and or printed using graphics and xprint.
The printer is local to my XP and Shared on my local network.
When i print on the xp after previewing it, it closes the main program.
This is not supposed to happen.
When I print on my WinME using the shared printer (same printer), everything
works fine. It prints and goes back to the main module.
If I preview the report on the XP machine then cancel (before printing), it goes back to the main program just fine.
I've looked to see if there's an abort variable that would somehow get back to the main module and close it but i cant find anything. Plus I have put several
msgbox statements to catch it to see if i can find the problem but none get displayed when i print although the ones that should get displayed if i cancel the print (before actual printing) do get displayed.
It's strange.
Now there is a mixture of versions here. The main module is written in pbdll60
the xprint/graphic preview print is written in pbwin8.04
But like i said, it works perfectly on the ME. It's like some xprint command is closing my main module dialog (a menu program).
Sometimes talking about it, makes the difference. Frustrated. I will continue to test.
Thanks in advance for any suggestions.
Oh there was one other thing. I had the following
XPRINT ATTACH PrtNam$
XPRINT GET CLIENT TO xWidth!,xHeight!
XPRINT GET MARGIN TO xLeft!, xTop!, xRight!, xBottom!
XPRINT GET PPI TO x&,y&
XPRINT CANCEL
to get my page parameters and it would not cancel the xprint but tried to print (spool it) and had to cancel the print through the printer spooler and force the main module to end because it hung up. So I REMMED those statements out
and put in values for the variables. This was on the XP again whereas on the ME it worked fine and came back with the
page values from the above statements. This may be a related problem.
The printer is an HP Deskjet.
There it's previewed/and or printed using graphics and xprint.
The printer is local to my XP and Shared on my local network.
When i print on the xp after previewing it, it closes the main program.
This is not supposed to happen.
When I print on my WinME using the shared printer (same printer), everything
works fine. It prints and goes back to the main module.
If I preview the report on the XP machine then cancel (before printing), it goes back to the main program just fine.
I've looked to see if there's an abort variable that would somehow get back to the main module and close it but i cant find anything. Plus I have put several
msgbox statements to catch it to see if i can find the problem but none get displayed when i print although the ones that should get displayed if i cancel the print (before actual printing) do get displayed.
It's strange.
Now there is a mixture of versions here. The main module is written in pbdll60
the xprint/graphic preview print is written in pbwin8.04
But like i said, it works perfectly on the ME. It's like some xprint command is closing my main module dialog (a menu program).
Sometimes talking about it, makes the difference. Frustrated. I will continue to test.
Thanks in advance for any suggestions.
Oh there was one other thing. I had the following
XPRINT ATTACH PrtNam$
XPRINT GET CLIENT TO xWidth!,xHeight!
XPRINT GET MARGIN TO xLeft!, xTop!, xRight!, xBottom!
XPRINT GET PPI TO x&,y&
XPRINT CANCEL
to get my page parameters and it would not cancel the xprint but tried to print (spool it) and had to cancel the print through the printer spooler and force the main module to end because it hung up. So I REMMED those statements out
and put in values for the variables. This was on the XP again whereas on the ME it worked fine and came back with the
page values from the above statements. This may be a related problem.
The printer is an HP Deskjet.
Comment