OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-01-2004, 14:17
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default Local Printer Selection

I have two local printers and a network printer attached to my machine. I am using CD11. Let's forget about the network printer for now. My default printer is a GCC Elite 20/600 and when I use the code:

Code:
ActiveDocument.PrintOut
Everything works fine to print to the default printer, however the other local printer is an HP 5550 color printer. I would like to know what code to use to print to this printer without having to change my default printer. I won't have to make any print option changes except maybe page orientation at print time from portrait to landscape.

Thank you in advance for your help
BTW, Alex, your site is awesome and an incredible help to us all.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #2  
Old 12-01-2004, 15:12
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Local Printer Selection

To change the destination printer, you need to go through the list of available printers and look for a specific printer name. Here is a topic with the code sample illustrating this: VBA Select Printer?

Also this topic has another example of this.

As for changing the page orientation, you'll have to get CorelDRAW 12, as this is only available there. Previous versions didn't have this capability. See this thread for more info: Printer page size and orientation from VBA
Reply With Quote
  #3  
Old 13-01-2004, 08:36
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

The first one worked like a charm. Thanks for the help.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending document size to printer tacarey CorelDRAW/Corel DESIGNER VBA 5 16-05-2008 02:09
activeselection cloning s_federici CorelDRAW/Corel DESIGNER VBA 2 05-11-2004 10:59
Text selection problem ken_ac CorelDRAW/Corel DESIGNER VBA 2 10-02-2004 21:24
VBA Select Printer? Jon Lorber CorelDRAW/Corel DESIGNER VBA 1 12-12-2003 10:36
Selection of Text off-page D_Green CorelDRAW/Corel DESIGNER VBA 2 04-10-2003 17:34


All times are GMT -5. The time now is 22:20.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com