tovvenki
asked on
Needs to print in the client printer
Hi,
The requirement is as follows
We have a web application in which we create reports and export it to PDF and display it in the browser.
All works the problem here is we have a textbox in the webform in this textbox the client will enter a number say 5. Add when exporting the report to the pdf and display it in the browser we need to automatically print in the printer connected to the client's PC the report n number of times(if the user has entered 5 in the textbox then we need to print it 5 times).
can anyone provide me a solution to this problem or a point me to a URL that will help me find the solution.
The softwares used in
C#, Asp.net 1.1 and we are using the crystal reports available in Visual Studio 2003
Thanks in advance
venki
The requirement is as follows
We have a web application in which we create reports and export it to PDF and display it in the browser.
All works the problem here is we have a textbox in the webform in this textbox the client will enter a number say 5. Add when exporting the report to the pdf and display it in the browser we need to automatically print in the printer connected to the client's PC the report n number of times(if the user has entered 5 in the textbox then we need to print it 5 times).
can anyone provide me a solution to this problem or a point me to a URL that will help me find the solution.
The softwares used in
C#, Asp.net 1.1 and we are using the crystal reports available in Visual Studio 2003
Thanks in advance
venki
ASKER
Hi,
Thanks for the quick response, but I think this is from an windows form application. I need to do that from a web application.
regards
venki
Thanks for the quick response, but I think this is from an windows form application. I need to do that from a web application.
regards
venki
Damn, it's server-side only i think :S
Not sure if there is a way to by-pass the print dialog on client-side printing (using window.print;).
I will look into it...
Not sure if there is a way to by-pass the print dialog on client-side printing (using window.print;).
I will look into it...
Apparently this works, but not for pdfs :O
AxWebBrowser1.ExecWB(SHDoc Vw.OLECMDI D.OLECMDID _PRINT, SHDocVw.OLECMDEXECOPT.OLEC MDEXECOPT_ DONTPROMPT USER)
AxWebBrowser1.ExecWB(SHDoc
ASKER
Hi thanks again,
i think this won't work as this prints by reading using a stringreader. what is want is I have a webform which has a input box and a print button. when the print button is pressed a crystal reports report will be genereated and exported into a PDF then the generated PDF needs to be printed in the printer in the client's PC the number of times specified by the user.
regards
Venki
i think this won't work as this prints by reading using a stringreader. what is want is I have a webform which has a input box and a print button. when the print button is pressed a crystal reports report will be genereated and exported into a PDF then the generated PDF needs to be printed in the printer in the client's PC the number of times specified by the user.
regards
Venki
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I will try this out and get back to you. In the mean time if you have other ideas please let me know it.
Thanks
venki
I will try this out and get back to you. In the mean time if you have other ideas please let me know it.
Thanks
venki
Are you printing the pdf or crystal report??
Anyway, this may help you: https://www.experts-exchange.com/questions/21777756/Open-internet-explorer-and-print-web-page-automatically.html
regards,
KS