ObjectAttributeSTR gives Error when the Field is on 2nd Pg

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
sureshk3
Posts: 29
Joined: Tue Jan 06 2004

ObjectAttributeSTR gives Error when the Field is on 2nd Pg

Post by sureshk3 »

Guys
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()
Post Reply