All, I am automating CorelDraw through VB.net.
All is going well until I get to printing. I want to change some printer settings before printing.
So far the basic setup...
Dim cDrawApp As Object = CreateObject("CorelDRAW.Application")
Dim mDoc = cDrawApp.CreateDocument()
Dim mPage = mDoc.ActivePage
cDrawApp.Visible = True
Inserting text, sizing, setting font etc. all working nicely as it should.
Simply printing the page works using :-
mDoc.PrintOut()
However, changing any printing parameters, according to VBA documentation, we use the "PrintSettings" command.
No matter how I try to use this it is not recognised by VB.
Any help greatly appreciated.
SendKeys "^(p)" ' cntrl+p or print
SendKeys "{TAB 4}"
SendKeys "{RIGHT 2}"
etc. etc.