logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
CHange  
#1 Posted : Wednesday, December 15, 2021 5:52:35 AM(UTC)
CHange

Rank: Newbie

Groups: Registered
Joined: 12/15/2021(UTC)
Posts: 2
Germany
Location: localhost

Hello,

im new to patagames pdf library.
Im using it currently for a project on VB.NET and have a PDF which has a fillable form inside.
For 5 different Fields i would like to automatically add a value if the value isnot already set.
The Fields are 4 Textfields and one dropdown.

I know how to select them with adobe acrobat javascript but not how to select and fill them with the patagames pdf library in VB.NET.

Can you help me with an example?

Example fields:
Name - type
"orderid" - text field
"date" - text field (with date format)
"customername" - text field
"phone" - text field
"servicetag" - dropdown (Options: DDF / GCF)

Thank you so much for your help in advance.

Many Greets,
Christian
Paul Rayman  
#2 Posted : Monday, December 20, 2021 5:52:19 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,027

Thanks: 5 times
Was thanked: 122 time(s) in 119 post(s)
CHange  
#3 Posted : Monday, December 20, 2021 5:58:53 PM(UTC)
CHange

Rank: Newbie

Groups: Registered
Joined: 12/15/2021(UTC)
Posts: 2
Germany
Location: localhost

Hey Paul,

thank you very much for your reply.
The examples are using numbers for selecting special fields.
Is it also possibole to select a field by its name?

Code:
doc.FormFill.InterForm.Fields[1];

This would select the second field, but depending on PDF the order is not everytime the same.

And is the selection in VB.NET the same like in C#?

Many Greets,

Christian
Paul Rayman  
#4 Posted : Monday, December 20, 2021 6:02:22 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,027

Thanks: 5 times
Was thanked: 122 time(s) in 119 post(s)
it is possible I hope. Just try
doc.FormFill.InterForm.Fields["name"];
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.