Hello,
I am using PrintPrevieDialog. When a printer is connected. PrintPreviewDialog show the image what I want to print.
However, when any printer is not connected, PrintPreviewDialog show messages that some arguments are wrong and does not show the print image.
I want to show the image in the PrintPreviewDialog although any printer is not connected.
Does anyone know what's wrong this?
Thanks,
Hello Guidegi,
I try to reproduce your issue with arguments exception in a small sample where I`m using the latest version 12.1.20121.2038, but without success. In my tests I remove all printer devices, but everything works as I expected. Please take a look at the attached video file and let me know if you think that I didn`t reproduce your scenario. Also could you please tell us what is your current version and do you have any installed service release and which one.
Please do not hesitate to ask me if you have any further questions.
Regards
Hello George,
I am using the version 10.2.20102.1004.
I saw the video you attached. In the video, when printer was removed, the "PrintPreviewDialog" shows the message " No printers are installed.".
However, in my situation, before the "PrintPreviewDialog" is displayed, the "Generating Previews" dialog box is displayed first and then disappear.
On the "PrintPreviewDialog", the message about wrong argument is shown.
Also, I think the "PrintPreviewDialog" has to show the preview image although the printer is not connected.
When I click the print button in the "PrintPreviewDialog", at this time "No printers are installed" message has to be shown.
How do you think about this?
This is the code about PrintPreviewDialog :
using (var dlg = new UltraPrintPreviewDialog()) { dlg.Document = ultraPrintDocument1; dlg.Document.DefaultPageSettings.Landscape = true; dlg.ShowDialog(); }
Please let me know what's wrong.