Corel Draw Export macro not working on v2.1.02

Hi.

The export macro for Corel Draw is not working on v2.1.02. Is there a new macro that need sto be installed for the new LB version?

I get a message that reads: The file ‘C:\\LBExport.ai’ could not be found

I am using CorelDraw 2026.

Please advise.

Thanks,

Marco.

I´ve Corel Tech 2024 and it works with 2.1.02:

I guess, I should have elaborated… I updated both CorelDraw to 2026 and Lightburn to 2.1.02 and now it does not work. It may be CorelDraw 2026 the issue. Does anyone use this combination of versions?

Thanks.

Didi you try loading the Macro again in Corel?

Hi, Yes, I loaded the macro on Corel 2026 (got it from the Lightburn install folder), as it is a new Corel Draw installation, and did not have the macro initially. Unfortunately, I uninstalled Corel 2018 right before installing 2026, so I cannot make it work now…

Ok,try this:

Edit the macro using the macro editor inside Corel. Change the following line from:

outputFile = “C:” & Environ(“HOMEPATH”) & “\LBExport.ai”

to:

outputFile = “C:” & Environ(“HOMEPATH”) & “LBExport.ai”

i.e. remove the backslash from the last string. Close the editor and return to CorelDraw. Try running the macro again. My guess is that for some reason HOMEPATH is returning a null string.

Let us know if this works for you.

Hope this helps.

Thanks for your help. I modified the macro, per your recommendation, and still have similar error, (with only 1 “/”

I am going to try to replace the path with a specific directoy…

Thank you very much for your help.

Replacing the homepath with a specific folder worked for me. I guess, I could have used the whole path and filename at once for the output file, but it is working now. Don’t want to mess it up. Lol.

Thanks again for your help!

I’m glad you got it sorted. Perhaps your user profile permissions prevent the creation of files in the root folder. I can’t think of a more likely reason off the top of my head right now.

I believe that is the issue, as I am on a corporate computer. They may be restricting that.

Thanks again for your help!

I thought that might be the case.

No problem, you’re welcome.