I encountered thi sproblem when I tried to set a Value to a field in the 2nd Page, when the focus is on the First page.
I did the following,
I opened a 3 page PDF document.
The first Page is visible in the Active X PDF Creator control on the window.
I called a Script to set a value to a field , which is on the second page.
I got an Error when the ObjectAttributeSTR function was called.
I tried opening the PDF with both Open and OpenEx methods, but in either case the ObjectAttributeSTRFailed.
- Please let me know what you guys think.
-Suresh
Code: Select all
ole_1.object.open("D:\3pagepdf.pdf","")
ole_1.object.ObjectAttributeSTR('field2', 'Value',ls_field1)
ole_1.object.Save("d:\withdata.pdf",1)
ole_1.object.refresh()