Click to See Complete Forum and Search --> : printer name assigment to a report object causes exeption


ergoktas
November 12th, 2008, 05:04 PM
I have two very simple report in my winform project.
Development machine is windows vista home premium, vs 2005 sp1 and crystal report sp1 for vs 2005.
I read the printer name from a config file and use that printer name in code

crReportDocument.PrintOptions.PrinterName = PaletteLabelPrinter;

PaletteLabelPrinter is a string holding the printer name from config file.

When I deploy my app to server 2003 R2, I simple have an error for report printing if I have a different printer name at the server than at my development machine.

Crash happening right at the line


crReportDocument.PrintOptions.PrinterName = PaletteLabelPrinter;

Error is as follows

Error in File C:\DOCUME~1\alc.......... The request could not be submitted for background processing

Besides, even though I installed the crystal report sp1, vs2005 just stop running when I select from
menu

Crystal Report -> Design -> Printer Setup, do something change and press OK then VS2005 simple
stop working.

Please help

Thanks to everybody

Muharrem