Document.ExportBitmap("fileName", cdrFilter.cdrPSD);if cdrFilter is cdrPSD Finish method will fails throwing a AccessViolationException Document.ExportBitmap method - Developer Area - CorelDRAW Community
It is working for me, I did this:
corelApp.ActiveDocument.ExportBitmap(@"C:\Temp\Example.psd", corel.cdrFilter.cdrPSD).Finish();
No error messages, and file was created.
I am using CorelDRAW 2022, 24.2.0.444 so maybe it was an issue in an early version of 2022.
-Shelby
Thanks for your reply, i has tested in two machines, one have the 24.2.0.444 version, maybe is my app context
Hi, Shelby Moore and Bonus630, I'd like to put in a word. I recently want export selection to jpg with some white margin, but found no parameter to achive this, do you have some experience? thank you.