Printing Objects from a web page

  • Thread starter Thread starter Iain Wilson
  • Start date Start date
I

Iain Wilson

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/mi.../browse_thread/thread/31355087d598b1a1?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
 
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.
 
Back
Top