I am trying to open a CorelDraw X7 file in vb.net 2013 and print to a specific printer on my network. I have no problems getting that far. However, once I try to assign the number of copies, it always return 1 copy. This was working fine when I was using X4 but in X7 it just doesn't want to assign the copies.What am I doing wrong? Also is there any documentation on using Corel.Interop.VGCore in vb.net not vba?Imports c = Corel.Interop.VGCoreDim cdrApp As c.Application = CType(CreateObject("CorelDRAW.Application.17"), c.Application)cdrApp.StartupMode = Corel.Interop.VGCore.cdrAppStartupMode.cdrStartupDoNothingcdrApp.OpenDocument("C:\Test.cdr")cdrApp.ActiveDocument.PrintSettings.Copies = 4cdrApp.ActiveDocument.PrintOut()cdrApp.ActiveDocument.Close()cdrApp.Quit()cdrApp = Nothing
I have found that Copies is very picky. Some printers it works with others it does not, so to make sure that everything works 100% of the time, I just added my own loop:
For i = 1 To intCopies doc.PrintOut Next i
Hope that helps,
-Shelby