Printing on client's side directly - without prompting for a print dialogue box RRS feed

  • Question

  • dear all,

    I am making a Web Part for a sharepoint site with .NET (visual studio 2010).

    How can I add a button in my web part, clicking on which will print a .text file stored on my server's c: drive to a printer on the client side without prompting for a 'print' dialogue box?

    The file to be printed is in the server's c: drive where the sharepoint site is hosted.

    The printer will be a local printer attached to the client machine.

    I have used the code at http://www.dotnetspider.com/resources/43366-Printing-Datatable-Data-In-C.aspx for creating the .text file.

    Please suggest.

    Thanks in advance.
    Thursday, July 26, 2012 4:00 AM