Hi
I develop an ASP.NET solution that prints some reports, for testing purpose I wish to automatically save these reports as PDF files instead of prompting the user to select the printer
I create my reports with Crystal Reports. For economic purpose I have the habit to test my reports with PDF Creator.
My code runs when it's in debug/iisexpress, the user is prompted for choosing a name for the created file.
But when I publish the app on IIS, the code works, I can see briefly a entry in the printer spooler but
nothing happend, no prompt, no file created ...
Here is the code but it seems legit the issue is somewhere else
report.PrintOptions.PrinterName = pPrinter
report.PrintToPrinter(1, 0, 0, 0)
Regards
What I have tried:
- I tried with Bullzip PDF Printer
- I tried to give all permissions to Everyone in the printer properties
- I tried to change the identity of the application pool in IIS