Hello Could you let me know how do I call the print dialog box in vba CorelDraw X6, I am trying to use it in a macro, It will be helpful if I can specify the printer and the page range to be printed so it opens with all setting ready to hit print.
Thank you in advance.
Jose
Sub Macro1() With ActiveDocument.PrintSettings .SelectPrinter "Adobe PDF" .Copies = 3 .PrintRange = prnPageRange .PageRange = "2-4" .ShowDialog End With
ActiveDocument.PrintOutEnd Sub
Thank you so much Mek! I just could not figure this one out by myself. Thanks a lot!
You are welcome!
Have a nice weekend!
Hi Mek, Not sure what could be happening here.
When I run the macro, everything works and the print dialog box pops up with the specified properties, the problem is that I click print and it just doesn't print. I tried different printers, even the Adobe PDF option to print to a file, I tried a different computer in a different place and it did the same thing. I realize that if I go to the print preview window and print from there then it prints. Do you mind testing this yourself on your computer, just to check if the problem is my Corel?
Thanks, Jose
Original quiestion was how to call print dialogue
Code in first post updated by line
ActiveDocument.PrintOut