I use PDFCrator 2.4, I am trying to set a custom profile through ExcelVBA in Office 2016 but I receive an error, I was looking for it with the object explorer and effectively it does not show this feature, mentioned in the documentation.
I also have troubles trying to use
PrintJob.SetProfileSetting(“EmailClient.Enabled”) = True
PrintJob.SetProfileSetting(“EmailClient.Recipients”) = “MyRecipients”
PrintJob.SetProfileSetting(“EmailClient.Subject”) = “MySubject”
PrintJob.SetProfileSetting(“PrintJobName”) = “MyJobName”
Thamks for help anyway.
thanks for reporting this, we will try to reproduce this here and let you know what we found out or attempt to fix the problem if it is a bug.
I found another post where someone of the staff wrote that the “SetProfileByName” was removed some time ago…
Anyway, I want to precise I use Windows 10 Pro and Office Home 2016.
I think PDF Creator is the best program to convert files to pdf.
Just playing around with it today, you know I am just a casual programmer.
I hope it will be possible to find a solution to this.
you are correct, it has also been removed from the documentation, you can use SetProfileByGuid instead now.
Regarding the last post, it should be EmailClient.Enabled so you might just be missing the dot.
Thank you for your prompt reply.
I made a quick correction adding the dot and this is what I got
Another thing about calling profiles: I have never been able to call custom profiles by GUID, today I went to search the registry about a profile called "PDFA_Automail" and I found
I think I will try to change the name of the GUID, after a backup of the key....
But is it correct the way PDFCreator stores the name of the GUID in the registry?
Ok, I modified the key “Guid” with the name and the call in VBA worked, but the name of the profile disappeared.
I copied and pasted the previous Guid in the VBA and it worked as well.
Sorry, I was workin with version 2.4.0, now I downloaded the 2.4.1 and it seems it’s working fine.