Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
I have a customer receipt summary form where there is a print button. i want to print the receipt directly to the default client printer. I dont want to show the report preview/ pop up window.
I'm using MVC3 with razor view.

Thanks in advance.

What I have tried:

i tried to populate rdlc in iframe & tried to print that. but not possible.
Posted
Comments
John C Rayan 10-Feb-16 7:40am    
First get pdf version of the content and give a link to print from the pdf
SamRST 14-Feb-16 4:23am    
I can get PDF from rdlc. but to print it to default printer automatically

1 solution

You can't force the client to print a document without asking. Printing costs money, can you imagine how annoying it would be if every site you visited forced adverts\coupons etc to your printer?
 
Share this answer
 
Comments
SamRST 14-Feb-16 4:25am    
I have pre-defined printer in clients.
John C Rayan 14-Feb-16 5:15am    
I would agree with sitecore
SamRST 14-Feb-16 6:05am    
This is not for all site. Its for a webApp.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900