Results 1 to 10 of 10

Thread: Client Side Print Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    5

    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....

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    5

    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..?

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    5

    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..

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    5

    Re: Client Side Print Problem

    I will try this way and Thanks you to much gep13

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Client Side Print Problem

    Hey,

    Let us know how you get on, and whether you have any problems.

    Gary

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    5

    Re: Client Side Print Problem

    of course I will come back whether any problem or result
    I will let know... again thank you...

  10. #10
    Hyperactive Member nepalbinod's Avatar
    Join Date
    Sep 2007
    Posts
    293

    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
  •  



Click Here to Expand Forum to Full Width