🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.acrobat.sdk
Article #24

Datatype of oAcroPDDoc.GetJSObject() changes automatically

#24
From: Shagun Grover
Date: Sun, 10 May 2009 16:45
24 lines
1951 bytes
Hi,

I am using Acrobat SDk for Adobe Professional 7.0 for integratting
Vb.net and Adobe forms.

I have some form feilds that used in my application.

The following code is used

            Dim jsObj As Object
            Dim oAcroPDDoc As Acrobat.AcroPDDoc
            oAcroPDDoc = avDoc.GetPDDoc()
            jsObj = oAcroPDDoc.GetJSObject()

            Dim H As Object
            H = jsObj.getField("Age")
H.value = "23"

Here 23 is a string that is set in the form feilds, How ever when
again I get the values of the "Age" field. by doing the
H = jsObj.getField("Age")

Here suprisingly the datatype of H changes to double. How can I
restrict this ? PLease help
Technical Details
Message-ID: <45f95a44-a12a-47ae-8dc7-d73d4a5017dd@n7g2000prc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!n7g2000prc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 2105b4c04d,9908361d09df3770,start
X-Google-Attributes: gid2105b4c04d,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!n7g2000prc.googlegroups.com!not-for-mail
From: Shagun Grover <sgrover@tsgintegrations.com>
Newsgroups: adobe.acrobat.sdk
Subject: Datatype of oAcroPDDoc.GetJSObject() changes automatically
Followup-To: adobe.acrobat.sdk
Date: Sun, 10 May 2009 09:45:10 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <45f95a44-a12a-47ae-8dc7-d73d4a5017dd@n7g2000prc.googlegroups.com>
NNTP-Posting-Host: 122.162.156.3
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1241973910 26342 127.0.0.1 (10 May 2009 16:45:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 10 May 2009 16:45:10 +0000 (UTC)
Cc: shagun.grover@gmail.com
Complaints-To: groups-abuse@google.com
Injection-Info: n7g2000prc.googlegroups.com; posting-host=122.162.156.3; 
 posting-account=1LYiPAoAAAB8FXZZNPS54uoBK-lJcL7I
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; GTB6; 
 InfoPath.2),gzip(gfe),gzip(gfe)