Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Printing Objects from a web page

Reply
 
Old 06-12-2008   #1 (permalink)
Iain Wilson


 
 

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 SpecsSystem Spec
Old 06-12-2008   #2 (permalink)
Family Tree Mike


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46