471,321 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

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 1351

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
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.