hope someone can help me, been trying to fugire out if how can i print the crystal report but i want first to show the printer dialog bo before printing cause right now using belowcode
rpt.PrintToPrinter(1, false, 0, 0);
it is automatically printing to what is default on your computer, what i want is the option to choose what printer will i use just like the window printer dialog box and also i am using a asp.net button hope someone can give me a better advise and also how
can i remove the background of my crystal report it has i dont know like a shadow and a sky blue what i only want to see is the paper.
Member
33 Points
211 Posts
How to Print Crystal Report using asp.net button
Jul 27, 2012 03:57 AM|iam_migs|LINK
Hi to all,
hope someone can help me, been trying to fugire out if how can i print the crystal report but i want first to show the printer dialog bo before printing cause right now using belowcode
rpt.PrintToPrinter(1, false, 0, 0);
it is automatically printing to what is default on your computer, what i want is the option to choose what printer will i use just like the window printer dialog box and also i am using a asp.net button hope someone can give me a better advise and also how can i remove the background of my crystal report it has i dont know like a shadow and a sky blue what i only want to see is the paper.
thanks in advance.
Star
9210 Points
2981 Posts
Re: How to Print Crystal Report using asp.net button
Jul 27, 2012 07:17 AM|Mudasir.Khan|LINK
you may do it in you code by this way
To get the list of current printers you can use:
interSettings.InstalledPrinters
For Each printers as string In System.Drawing.Printing.Pr
Me.ComboBox1.Items.Add(printers)
Next
please check this link
http://www.codeproject.com/Articles/12280/Choosing-a-printer-when-printing-from-Crystal-Repo