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

Notification

Icon
Error

Options
Go to last post Go to first unread
brettr  
#1 Posted : Monday, November 14, 2016 9:55:55 AM(UTC)
brettr

Rank: Member

Groups: Registered
Joined: 8/11/2016(UTC)
Posts: 14
United States

Thanks: 1 times
I'm initializing a document his way:

var _doc = Patagames.Pdf.Net.PdfDocument.Load("...", new PdfForms());
var interactiveForms = _doc.FillForms.InterForm;

How do I search on interactiveForms for a specific field by field name so I can get its value? Is there a Linq I can use?

Thanks.
Paul Rayman  
#2 Posted : Monday, November 14, 2016 7:42:29 PM(UTC)
Paul Rayman

Rank: Administration

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

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Originally Posted by: brettr Go to Quoted Post
Is there a Linq I can use?


I think so.
The following code works fine, anyhow.
Code:

var result = from field in interactiveForms.Fields
             where field.FullName == "Column2_wKo0HR2CXHILlMu-O9dU2g"
             select field;

Edited by user Monday, November 14, 2016 7:43:22 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
brettr on 11/17/2016(UTC)
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.