468,792 Members | 1,726 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,792 developers. It's quick & easy.

word object and printing

Well I am coding an application using C# for my company which requires
multiple printing of Crystal Report Docs & Word Docs, at a specific Printer
of the installed Printers in the network, at a specific tray and some more
settings too.
since I'm trying with the network printer I've installed a local driver
using the local port as suggested by one of the MS support site.

The definition of the Printer & Tray is happening from the code (dynamically
based on the inputs given by the user thru some other screen ...say Maintain
Printer), and there should not be a user interface (A print preview or
printer settings box etc.)

Here go my attempts:

Since I need to have a common solution both for word and crystal printing
I've decided to do this

thru WinAPIs. so I tried to set all the settings thru WinAPIs (SetPrinter,
DocumentProperties, ...) but ....

1. These settings are not reflected into the driver properties(I'm using the
standard code for

setting the printer settings, and my WinAPI calls are successfully executing)
2. Even if I change the settings directly thru driver properties (without

for testing) and tried giving printout using wordObject.PrintOut() method
but this wordObject is overriding the driver settings. So the problem here is
I cannot have a common approach (the enum values) both for word and crystal.

Since word and crystal object's Enums are different I need to have a common
solution for both word and crystal object.

Please advice me regarding this.....
Nov 17 '05 #1
0 1268

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Microsoft | last post: by
5 posts views Thread by Stefania Scott | last post: by
10 posts views Thread by Jeff B. | last post: by
4 posts views Thread by scorpion53061 | last post: by
1 post views Thread by Derek Hart | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.