I want to set the printername to the printer which is to be used on another computer than the one i use to develop. When i attempt this it always set it back to my default printer. Why is it so?
Each time you set the printer name, ReportBuilder checks that the printer is available and if not, assigns the default printer instead. If you are absolutely certain of the printer name on another machine, you could do so at runtime in code.
As a rule of thumb, it is generally better to use the PrinterSetup.PrinterNames list to assign the PrinterName property. This way you can be sure the name is correct.
Comments
Each time you set the printer name, ReportBuilder checks that the
printer is available and if not, assigns the default printer instead.
If you are absolutely certain of the printer name on another machine,
you could do so at runtime in code.
As a rule of thumb, it is generally better to use the
PrinterSetup.PrinterNames list to assign the PrinterName property. This
way you can be sure the name is correct.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com