highandwild
Registered User.
- Local time
- Today, 15:20
- Joined
- Oct 30, 2009
- Messages
- 435
Hi
I am outputing a report to PDF using the following line of code:
DoCmd.OutputTo acOutputReport, strReport, "PDFFormat(*.pdf)", strOutput, False, "", , acExportQualityPrint
where strReport and strOutout contain the name of the report and the name of the resultant pdf file.
It works fine when the Navigation Pane is visible but when I hide it I get error 2046.
This is a known error but is there a way around it short of showing the navigation pane?
I use the following code to hide the pane, how do I show it and how would I just minimise it?
DoCmd.SelectObject acTable, strTable, True
DoCmd.RunCommand acCmdWindowHide
Thanks
I am outputing a report to PDF using the following line of code:
DoCmd.OutputTo acOutputReport, strReport, "PDFFormat(*.pdf)", strOutput, False, "", , acExportQualityPrint
where strReport and strOutout contain the name of the report and the name of the resultant pdf file.
It works fine when the Navigation Pane is visible but when I hide it I get error 2046.
This is a known error but is there a way around it short of showing the navigation pane?
I use the following code to hide the pane, how do I show it and how would I just minimise it?
DoCmd.SelectObject acTable, strTable, True
DoCmd.RunCommand acCmdWindowHide
Thanks