Z
zeb
I have a need (programmatically) to produce PDF attached Emails.
My Word VBA code does the following:
1) Prints the PDF document to a specified path using PDF writer
2) Checks that the PDF file exists and is of a reasonable size
3) Uses the Outlook object to create a mail item (with attachment)
4) Sends the document.
And it works – well it does in the VBA development environment!
When I run from a templated document the PDFs don't appear until
after my check code (2) times out i.e. when the task errors
I've tried delays in the check code – but they seem to make matters
worse! I can only guess that the problem is application thread
related.
Anyway, anyone got any ideas how I can solve this problem using VBA
before I resort to other languages
My Word VBA code does the following:
1) Prints the PDF document to a specified path using PDF writer
2) Checks that the PDF file exists and is of a reasonable size
3) Uses the Outlook object to create a mail item (with attachment)
4) Sends the document.
And it works – well it does in the VBA development environment!
When I run from a templated document the PDFs don't appear until
after my check code (2) times out i.e. when the task errors
I've tried delays in the check code – but they seem to make matters
worse! I can only guess that the problem is application thread
related.
Anyway, anyone got any ideas how I can solve this problem using VBA
before I resort to other languages