CutePDF with programmatic access

  • Thread starter Thread starter SUZYQ
  • Start date Start date
S

SUZYQ

I recently purchased CutePDF with programmatic access so that I can
create PDFs while bypassing the "save as" dialog box.

Does anyone have experience incorporating this into VBA? I have loaded
the software. I copied the api calls into a module and am trying to
use the example that they show on the CutePDF website that interacts
with Word.

When I try to compile the code, I get an error that a variable is not
defined (REG_OPTION_NON_VOLATILE), but according to the CutePDF people
this is a Windows sdk constant value.

Would love to hear from someone who has successfully done this.
 
SUZYQ said:
When I try to compile the code, I get an error that a variable is not
defined (REG_OPTION_NON_VOLATILE), but according to the CutePDF people
this is a Windows sdk constant value.

Doing a Google on this field I found the following KB article.
http://support.microsoft.com/default.aspx?scid=kb;en-us;299853
which has the following value in it
Const REG_OPTION_NON_VOLATILE = 0
So I'd try that one.

Note that you will likely have other constants with a similar problem.

As an alternative A2000ReportToPDF is an Access 2000 database
containing a function to convert Reports and Snapshot files to PDF
documents. No PDF Printer driver is required.
http://www.lebans.com/reporttopdf.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Simply substitute for 0 (zero)
Or declare
Public Const REG_OPTION_NON_VOLATILE=0

Pieter
 
Thanks. As to A2000ReportToPDF, I have tried it but it doesn't work
with the barcode font that I have in the report. I contacted Stephen
Lebans, and he is aware of it.

So now I'm trying the CutePDF. I set the constant to 0 and it seems to
be working but needs more tweaking.

Thanks,
 
SUZYQ said:
Thanks. As to A2000ReportToPDF, I have tried it but it doesn't work
with the barcode font that I have in the report. I contacted Stephen
Lebans, and he is aware of it.

Darn. Well, if Stephen is aware of that problem then there's not much
we can do about it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Another user posted that switching to a True Type BarCode font solved the
issue. The OP should do a GoogleGroups search on this issue.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
"Stephen Lebans"
Another user posted that switching to a True Type BarCode font solved the
issue.

Now isn't that interesting!

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top