![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Printing Objects from a web page I posted a question on this forum a couple of days ago and have received no reply so far. See the original post at http://groups.google.co.uk/group/mic...598b1a1?hl=en# I have trawled the web looking for a way to simply print a document without having to stream the document. I cannot find anything to help me. I am either not understanding the PrintDocument object or not looking for the correct thing in my search. As I mentioned I will attempt to print a number of .pdf, .doc, .xls plus the datagrids on the page I have built. I want to do this without using Javascript and I need to print the objects in a particular order. I would like to send a document to the printer using a simple command such as pd.DocumentName = "C;\MyDocumenht.pdf"; pd.Print; This would cause the pdf document to be printed to a printer; Is this possible and if so 1. How - or if no-one can define how then 2. Does anyone know of a reference site with an explanation or example of hout to do this. Using .Net 2.0 Thanks in advance for anyone offering any assistance Iain |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Printing Objects from a web page If you are trying to print server files to the printer on the server, you should use the System.Diagnostics.Process class and the property StartInfo.Verb "Print". If you want to have it print on the client's computer, then I am pretty sure it involves some scripting and streaming. "Iain Wilson" wrote: Quote: > I posted a question on this forum a couple of days ago and have > received no reply so far. > > See the original post at > http://groups.google.co.uk/group/mic...598b1a1?hl=en# > > I have trawled the web looking for a way to simply print a document > without having to stream the document. I cannot find anything to help > me. I am either not understanding the PrintDocument object or not > looking for the correct thing in my search. > > As I mentioned I will attempt to print a number of .pdf, .doc, .xls > plus the datagrids on the page I have built. > > I want to do this without using Javascript and I need to print the > objects in a particular order. > > I would like to send a document to the printer using a simple command > such as > > pd.DocumentName = "C;\MyDocumenht.pdf"; > pd.Print; > > This would cause the pdf document to be printed to a printer; > > Is this possible and if so > > 1. How - or if no-one can define how then > 2. Does anyone know of a reference site with an explanation or example > of hout to do this. > > Using .Net 2.0 > > Thanks in advance for anyone offering any assistance > > Iain > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Printing web page to a PDF | Vista print fax & scan | |||
| Problem Printing Objects From A Web Page | .NET General | |||
| HP1020 not printing last page | Vista hardware & devices | |||
| printing test page | Vista print fax & scan | |||
| Printing q web page | Vista print fax & scan | |||