473,569 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change default printer for a word document

Hi,

I have an application that writes to a word document. After that I wish to
print the document to a particular printer automatically. I tried but it
keeps on printing to the default printer. How can I set the printer for the
word document to print?

Thanks
Nov 21 '05 #1
2 4306
If I remember correctly you need to use ActivePrinter property of document.
Go MSDN and look up word automation topics - there is plenty of information.

HTH
Alex

"Vivek" <vi****@xtra.co .nz> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

I have an application that writes to a word document. After that I wish to print the document to a particular printer automatically. I tried but it
keeps on printing to the default printer. How can I set the printer for the word document to print?

Thanks

Nov 21 '05 #2
If I remember correctly you need to use ActivePrinter property of document.
Go MSDN and look up word automation topics - there is plenty of information.

HTH
Alex

"Vivek" <vi****@xtra.co .nz> wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

I have an application that writes to a word document. After that I wish to print the document to a particular printer automatically. I tried but it
keeps on printing to the default printer. How can I set the printer for the word document to print?

Thanks

Nov 21 '05 #3

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

Similar topics

1
10581
by: Stephen Barrett | last post by:
I am doing word automation with Word 2003. Everything works great except for one thing. When I set the word object's ActivePrinter to a different printer, it changes the system default. I looked for help on MS site and they say it is a known issue. The work around is to use WordBasic commands like as follows. ...
0
1243
by: Maravilloso | last post by:
Hi all: I'm getting mad trying to find the way for making a standard document (Word file, Postscript document, JPEG file...) to be sent/printed in the default network printer from a python script that runs on Win2K. Any idea? Thanks in advance.
3
2134
by: (Pete Cresswell) | last post by:
I'm doing a booklet for a class reunion. Got all the data and everybody's life history in a little MS Access app and now it's time to get the booklet ready to go to the printer's. I have a report that creates same, but rather than send it to a printer of PDF file, I'd prefer to get it into MS Word, PageMaker, or some other document...
5
7113
by: Hank | last post by:
My Access 2000 code has been running for several years in our main plant. Now we need to install it, as a stand-along application, at remote sites, some of which are out of state. My problem is the printer destination for special reports such as stickers and mailing labels. The Mailing Label report is, of course, designed here for a...
13
9074
by: Mark Rae | last post by:
Hi, I have used the code below to return the default printer in 32-bit WinXP Pro, but now that I am running 64-bit Vista Business I'm getting an error: using System.Drawing.Printing; using (PrintDocument objPrintDocument = new PrintDocument()) { string strDefaultPrinter =
5
1861
by: raha | last post by:
hi. Is there any body to help me? I am writing a web program. I have some forms. each form have some controls and users can edit the controls. finally they can save their forms. I would like to add an ability to my program. In fact I want to have an Icon that change, when a user change the value of a control of form such as textbox ,...
8
2874
by: Phil Stanton | last post by:
Using Access 2000 (Yes I know there is no Printer specified) and an MDE File (Yes I know I can't open a report in design view). Is there any way using VBA of temporarily changing the report's printer from the default printer for that report to a PDF995 printer (so that i can print it to a file for subsequent emailing) then back to the default...
0
2594
by: =?Utf-8?B?S2ltIFM=?= | last post by:
word.Application msword = new word.Application(); object missing = Type.Missing; // Hidden Word document msword.Visible = false; try { word.Document doc = LinqTool.WordCreateDocument(ref msword);
4
2020
by: Stefano | last post by:
I've got a problem using printer functions with my network printer shared on another PC as \\192.168.1.3\HP If the printer is connected and reachable, printer_***() functions work correctly. Now let suppose the printer cable is unplagged so the printer is no more reachable: $handle = printer_open($printer_address); // Returns an...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.