printing is easy ??

C

cmrchs

Hi,

is there an easy way to load a document and print it out as it is (thereby recognizing its format :richtext or other) ?

By easy I mean without having to implement the PageEvent-handler of a printDocument-object (in which I have to specify the position myself of the lines I want to print)


Thanks

Christian

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
H

Herfried K. Wagner [MVP]

* Chris C ([email protected]) scripsit:
is there an easy way to load a document and print it out as it is
(thereby recognizing its format :richtext or other) ?

\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

PageSize in a PageSetupDialog ?? 1
Form inheritance 2
use a .NET Windows Control in VB6.0 ??? 2
control painting problem 3
set reference to null ??? 4
printing to file ??? 1
x 1
visual effects on a web-page 4

Top