473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Duplex printing in .net

I have two complex Word templates that also contain some Bookmarks for receiving database data dynamically. I'm using Word automation code within VB.NET to manipulate the template. I don't need to save the document - I simply open the template, write data to the bookmarks, then call PrintOut

However, one template is a two-sided document. I need to know how to change the printer settings to duplex prior to the PrintOut call in the one case, then back to one-sided in the other case

Jul 21 '05 #1
4 9209
Hello,

Thanks for your post. Please take a look at
System.Drawing.Printing.PrinterSettings which provides CanDuplex and Duplex
properties to determin and set the Printer for double-sided printing.

PrinterSettings.CanDuplex Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemDrawingPrintingPrinterSettingsClassCanD uplexTopic.asp

PrinterSettings.Duplex Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdrawingprintingprintersettingsclassdupl extopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hello,

Thanks for your post. Please take a look at
System.Drawing.Printing.PrinterSettings which provides CanDuplex and Duplex
properties to determin and set the Printer for double-sided printing.

PrinterSettings.CanDuplex Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemDrawingPrintingPrinterSettingsClassCanD uplexTopic.asp

PrinterSettings.Duplex Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdrawingprintingprintersettingsclassdupl extopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Hi,

I would like to follow up on this issue and see if any progress has been
made. I haven't heard from you in 2 days, were you able to check my reply?
Should you have any questions, please feel free to post here.
Looking forward to your reply!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
Hello,

Sorry for the misunderstanding. Unfortunately, there is not a direct
command that you can issue that causes a document to print duplex when
automating Word. To work around the problem, please check the KB article
and see if it helps:

HOWTO: Make Word Print Duplex Using OLE Automation
http://support.microsoft.com/?id=194306

I look forward to your response.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: manofbluz | last post by:
I have two complex Word templates that also contain some Bookmarks for receiving database data dynamically. I'm using Word automation code within VB.NET to manipulate the template. I don't need to...
0
by: dchu | last post by:
Does anyone know how to set printer duplex using browser control (i.e SHDocVw.InternetExplorer) in vb.net without the need to used system.drawing.printing class. Any Guru here?????????????? who...
0
by: KohlerTommy | last post by:
In my application I need to give the user the ability to print duplex if the selected printer supports duplex printing. Many of the printer options do not make much sense in my application, and...
4
by: Jamey Shuemaker | last post by:
I've been looking for a way to do a duplex print job without a duplex printer. I reviewed some old posts about printing odd pages and found that most of them led to KB article 101075 or an export...
10
by: Joe M | last post by:
I was wondering if someone could lend me a hand with a C# problem I am having I am trying to use the “setPrinter” api to change the duplex setting (under printing preferences on printer...
0
by: Net | last post by:
Hi, Anyone can tell me how I can set the VB program to do duplex printing automatically? What I have now is: oDoc = oWord.Documents.Open(filepath) oDoc.PrintOut(Background:=False,...
4
by: manofbluz | last post by:
I have two complex Word templates that also contain some Bookmarks for receiving database data dynamically. I'm using Word automation code within VB.NET to manipulate the template. I don't need to...
2
by: =?Utf-8?B?SlA=?= | last post by:
Hi, We have an application that is written in Visual Studio .Net but the reports will not duplex while printing? Does anyone have an idea why? Thanks, -- JP
1
by: dotnetdummy | last post by:
Hi, Can anyone who can help me out if possible. At the moment, I'm working on a window application (vb.net) which print out html document's through a default network printer. I'm using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.