Question

It is fine if I can print report at client side by opening a print dialogue as well without using any Webviewer.

How can i open a print dialogue at client side?


Edit added code from Comments:

rpt.Run();
rpt.Document.Print(false, false, false); 

I used this code.But this code is server side printer instead of client side printer.Now I want to print directly with print dialogue in Client side

Was it helpful?

Solution

Please see the answer at https://stackoverflow.com/a/11419422/51061 . I think this will answer your question completely.

OTHER TIPS

you can use PrintPreviewControl, PrintDocument

for printing

PrintDocument printDoc = new PrintDocument();
printDoc.PrintPage += new PrintPageEventHandler(this.printDoc_PrintPage);
printDoc.Print()

for print preview

PrintPreviewDialog dlgPrint = new PrintPreviewDialog();
dlgPrint.Document = printDoc;
dlgPrint.ShowDialog();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top