G
Guest
We have created a customized template for work which has about 20
user-defined fields. The template will be sent to co-workers via email, and
we would like the reader to be able to print the template for future
reference. I did find articles on this website related to printing forms. I
was successful in adding a "print" button to the template which is actually
an alt-screen print command. However, the data on the screen could
potentially be longer than the print screen shot - and the reader would have
to alt-print screen the top half of the form and then the bottom. I then
found an example of how to print a custom form and have the user-defined
fields sent over to Word, and Word will print out the form. I have been
playing with this, but my 1 line to define the user-generated field, doesn't
work. If I surpress that line, Word will print a blank page out - so I know
that part is correct.
The line is: ' Set the first bookmark to the Market name
oDoc.FormFields("Text1"). Result = Item.UserProperties.Find ("A.Market")
- where A.market is the user-generated field and a form has been created in
Word with a Text 1 and Text 2 Label. When I run the debugger - I get a
run=-time error: type mismatch
Any help is appreciated -
user-defined fields. The template will be sent to co-workers via email, and
we would like the reader to be able to print the template for future
reference. I did find articles on this website related to printing forms. I
was successful in adding a "print" button to the template which is actually
an alt-screen print command. However, the data on the screen could
potentially be longer than the print screen shot - and the reader would have
to alt-print screen the top half of the form and then the bottom. I then
found an example of how to print a custom form and have the user-defined
fields sent over to Word, and Word will print out the form. I have been
playing with this, but my 1 line to define the user-generated field, doesn't
work. If I surpress that line, Word will print a blank page out - so I know
that part is correct.
The line is: ' Set the first bookmark to the Market name
oDoc.FormFields("Text1"). Result = Item.UserProperties.Find ("A.Market")
- where A.market is the user-generated field and a form has been created in
Word with a Text 1 and Text 2 Label. When I run the debugger - I get a
run=-time error: type mismatch
Any help is appreciated -