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 : 3 years ago
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 : 3 years ago
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
CHange  
#3 Posted : 3 years ago
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 : 3 years ago
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
it is possible I hope. Just try
doc.FormFill.InterForm.Fields["name"];
Users browsing this topic
Guest
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.