View Single Post
 
Old 12-10-2013, 11:19 AM
MaxInCO MaxInCO is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Dec 2013
Location: Denver
Posts: 9
MaxInCO is on a distinguished road
Default Calculate the coordinates of a DocVariable, Bookmark or paragraph.

My VB application uses a set of Word templates to create a series of PDFs, into some of which get inserted digital signature fields. My current challenge involves locating that digital signature field accurately since the content of the Word documents is not static. Some paragraphs (bullets) get deleted based on user specified criteria, which causes the salutation to move vertically.

What I've come up with so far is to place a small square shape just above the salutation in my templates, make all my bullet adjustments, calculate the coordinates of the Shape (which moves), and then delete it prior to generating the PDF. However, this Shape is somewhat of a nuisance to manage.

Instead, is there any way to calculate the dynamic coordinates/vertical location of a DocVariable field, bookmark or paragraph so I don't have to deal with this Shape in all my templates?

Thanks.
Reply With Quote