Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


exporting (save) document with a macro on corel X5

exporting (save) document with a macro on corel X5

exporting (save) document with a macro on corel X5

Hi, this is my first forum so sorry if i didn't put in the correct place, this is what i want to do, i have a template where i run several macros to do several things however i have tried to create a macro to export the final design with custom size and the macro wont run, is there a way of doing it?

many thanks in advance.


RE: exporting (save) document with a macro on corel X5

I'm on X4 but X5 shuold have the same vba capabilities. Here's a sample code that should help...note the drawback of this functionality is that the file name and directory must be hardcoded or other codes needs to be introduced in order to get the user to put the directory and file name.


Sub ExportToWinLase()
    ' Recorded 5/13/2011
    ' Saves file as .plt
    Dim savetopath As String
    Dim expopt As StructExportOptions
    'Dim yn As String
    Set expopt = CreateStructExportOptions
    expopt.UseColorProfile = False
    Dim expflt As ExportFilter
    Set expflt = ActiveDocument.ExportEx("c:\test.plt", cdrHPGL, cdrAllPages, expopt)
End Sub

Also, you can find this information in the vba programming guide for X5 which should be located in the following path of your machine.

C:\Program Files\Corel\CorelDRAW Graphics Suite X4\Programs\dvba_pg.pdf

Good luck


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close