Output To PDF from a library

C

CBKowitz

Don't know if this is a bug. But I have to functions that will allow to
output the contents of a report to either PDF or RTF. They are both located
in a code library .accdb. The RTF works fine and creates the .rtf file. The
PDF Function errors out that it cannot find the report (ErrNo 2059).

Here's the line of code:

DoCmd.OutputTo acOutputReport, strReportName, acFormatPDF, strOutputPath,
False, , , acExportQualityPrint


The function has to be in the code library because that's where the calling
function is located.

Thanks for any help.
 

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

Top