Last post Jan 03, 2011 12:05 PM by aspman2009
Jan 02, 2011 06:07 PM|aspman2009|LINK
Hello Friends I am using Asp.Net C# & CrystalreportViewer. I developed report and call through crystal report viewer. Everything running fine but when i click print button on top crystal bar it's pop up window which is say that export in pdf and then print
from there. So when i click ok it's create pdf file and then i am able to print the document.
Is it any another way that i can open printer selection dialog box and then able to give print directly.
Jan 03, 2011 12:04 AM|mudassarkhan|LINK
Jan 03, 2011 12:05 PM|aspman2009|LINK
thanks mudassarkhan for the replay,that helps me a lot.
So I did it like this:
1-I puted this code in the Page_Load method
//Prepare a script to open the file in a new window
"window.open('" + "../../PopUpPageReport.aspx" + "', 'CustomPopUp', " +
"'width=600, height=600, menubar=no, resizable=yes');";
//Attach Script to button control