how to print documents

A

Ashish

How to print any document in .NET?
There are PrintDocument and PrinterSettings classes
available in Framework class library but it requires that
we implement a PrintDocument_PrintPage event handler and
we have to write the code to print the document. This
works fine if we have to print simple text but what if we
want to print RTF and DOC format programmatically. In that
case we have to take care of different sizes of font and
embedded images. Is there any other way to print a
document without using PrintDocument and PrinterSettings
classes?
Help required immediately?

Ashish
 
A

Ashish Sheth

Hi, My main concern is to make a component which can be used in asp.net
also. I don't to print just doc and rtf format, but that was just an
example. I want to print HTMl also that can have images and all other
kind of stuff. So how can I do that?
Thanks,
Ashish
 
S

Shawn Farkas [MS]

There is no built in componant to print aribrary file formats. You'll need
to either write your own printing classes using the PrinterDocument class,
or find a library that does this for you.

-shawn
 

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

Top