News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

VBA to Print drawing area and text area to pdf.

Started by Biomedmike, October 28, 2024, 01:21:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wapperdude

#15
The code I provided sends 2 pages to printer or to SaveAs PDF, whichever standard Visio process you will chose.  Other than adding the code, you use Visio as is.  The code is configured for your specific file case.  Ah.  I did change your ruler and page settings so that it conforms to standard of having lower left corner at (0,0).  Otherwise, the selecting rectangle needs change in code as does the placement on the temporary page to have correct selection and pasting.

When you print, it recognizes your original page and also the temporary page which contains your right most text contents.  The default config for printing ought to be fine.

Likewise, when you chose to SaveAs PDF, the resultant  PDF contains the same 2 pages.  See attached as 2-page PDF result from SaveAs.
Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 141 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1004KB.
Tokens: post-login.
Cache hits: 14: 0.00260s for 26,741 bytes (show)
Cache misses: 4: (show)
Queries used: 17.

[Show Queries]