|
-
Mar 11th, 2010, 03:27 AM
#1
Thread Starter
New Member
Client Side Print Problem
Hi
I am developing to a ASP.NET Application and I am using PrintDocument Class in this Project.simply This is a sutiation. I am using a impact printer myself from my local pc defined andI am doing success terribly about print operation.I am not annoyance up until now.simply I was Publishing this project and I was casting off Host area. Hereafter when This WebSite use Client clicking print button , This WebSite give to error. Actually I finded out this problem. When Clients were clicking to print button , It sent to running about print operation in the Hosting Exist Machine printer and Already
I haven't defined about this subject. My question are starting hence.
How can I provide to sending print the WebSite view every client's printer ?? Especially I want to use PrintDocument Class.Because This Page is used to Clients They maybe everyday get to thousands of print.In this way I don't want to another method(xps document,ReportViewer, RSClientprint...like) Because if I use to from This Methods, I open to urgency second one page and This sutiation is slowing down workflow. Therefore I demand to using PrintDocument method.
Can you help me from about this subject?
Right now thanks you....
-
Mar 11th, 2010, 03:39 AM
#2
Re: Client Side Print Problem
Hey,
Simply put, you are not going to be able to call a Clients printer from your Server Side code, this would be seen as a security violation.
The best you could offer would be to provide a download of the file that you want to let them print, or if you are talking about printing the current web page, you could call the client print method using JavaScript.
Gary
-
Mar 11th, 2010, 04:08 AM
#3
Thread Starter
New Member
Re: Client Side Print Problem
Firstly I thank you for reply
ok I understant this is a securty violation now then I able to create XPS Document and I make download clients and clients printing.and This way
I catch to plural data the my database Can I print plural about client printer
in your opinion is this method slowing down workflow.
This way will you..?
-
Mar 11th, 2010, 02:25 PM
#4
Re: Client Side Print Problem
Hey,
I am not sure I follow exactly what you are saying. What do you mean by this:
Code:
This way
I catch to plural data the my database Can I print plural about client printer
Gary
-
Mar 11th, 2010, 06:20 PM
#5
Thread Starter
New Member
Re: Client Side Print Problem
I am sory about my english
For example I catched to two record my database and can I print both of record from client printer ? or can I get to both of record from xps document ..?
I hop expain to you..
-
Mar 12th, 2010, 03:17 AM
#6
Re: Client Side Print Problem
Hey,
Is it possible that you can show the code that you are using to currently print the document to your local printer?
If I were you, I would be more inclined to "print" to a PDF document, and then allow the end user to download that, and then choose to print it if they want to.
There are a number of libraries that you can use now to wrap the functionality of creating a PDF, for instance:
http://www.devshed.com/c/a/Java/Crea...th-iTextSharp/
Gary
-
Mar 12th, 2010, 04:14 AM
#7
Thread Starter
New Member
Re: Client Side Print Problem
I will try this way and Thanks you to much gep13
-
Mar 12th, 2010, 04:54 AM
#8
Re: Client Side Print Problem
Hey,
Let us know how you get on, and whether you have any problems.
Gary
-
Mar 12th, 2010, 06:07 AM
#9
Thread Starter
New Member
Re: Client Side Print Problem
of course I will come back whether any problem or result
I will let know... again thank you...
-
Mar 12th, 2010, 03:09 PM
#10
Hyperactive Member
Re: Client Side Print Problem
Since ASP.net runs on server, it would not recognize and/or has no direct association with client peripheral devices such as printers. In order to allow clients to print from your web application, you would have to introduce a reporting functionality or add a pdf engine to your web application.
Hope this helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|