Hi. I have Crystal Reports 11. I am using the VCL for Delphi 7. There is something happening in my app that I do not understand, nor do I know how to debug what is happening.
Here's the scenario I'm experiencing:
I have a Windows 7 computer. I have printer drivers installed for two different printers. One printer is, of course, the default. I use Remote Desktop to logon to a 2012R2 server. In the options of remote desktop, I check the box that I want to use my local printers. On this server, I do not have the printer drivers installed for either printer. In Windows' Devices and Printers, I see my two printers, with the words "(redirected 2)" in the name displayed. My application was compiled on a virtual XPMode in Delphi. The application is installed on the 2012R2 server, including all the runtime libraries required for Crystal.
If I am in notepad, I can print to either printer without trouble. I'm trying to print to the non-default printer in my application with a CR report. My Crystal report appears to "go thru the motions of printing", without displaying an error, but absolutely nothing prints out. I have access to the ucrpe32.pas file and put in some trace statements in the Execute method. It seems to go into and come out of the PEStartPrintJob. In my trace debug statements, I'm displaying the name of the printer and it seems to be correct before the PEStartPrintJob is called. It says "Myprinter (redirected 2)" and that appears to be my chosen printer. PEStartPrintJob appears to be inside a dll and I don't know how to debug it further than this.
So, two questions. If someone happens to know what is going on behind the scenes, can you please shed some light for me? Or, maybe, tell me how to debug into the crystal dll, with the hopes of figuring this out?
Thanks for reading!