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 20-04-2004, 16:32
dcs
Guest
 
Posts: n/a
Default I need HELP printing corel files from VB6!

Hi All,

I need HELP! :cry:

I am trying to find some VB6 code to printout some files through Corel 12. I found code to do the printout, BUT..... I also ran into some other problems.

Here is the code I have:

Code:
Dim App As CorelDRAW.Application
Dim doc As CorelDRAW.Document

    Set App = New CorelDRAW.Application
    App.Visible = False
    App.Optimization = True
    
    Set doc = App.OpenDocument("K:\printmap.cdr")
        
    doc.PrintOut
    DoEvents
    
    doc.Close
    Set doc = Nothing
    
    App.Quit
    Set App = Nothing
It works in the basic way, but I need to be able to prevent the Orientation Prompt (adjust orientation automatically?), and to be able to select "FIT TO PAGE".



Thanks In Advance for any and all help.
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
Printing Raw Prn Files Mark Code Critique 2 16-09-2004 16:15
Is Corel to Excel data exchange possible? alex69 CorelDRAW/Corel DESIGNER VBA 8 24-06-2004 04:52
Thumbnailer Issue with EPS files vallentin Macros/Add-ons 2 16-03-2004 10:04
Corel 10 file conversion script doesn't convert files Kevin CorelDRAW CS 0 13-04-2003 20:28
Corel Capture 8 and Corel Script Helix CorelDRAW CS 0 13-12-2002 18:10


All times are GMT -5. The time now is 05:37.


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