Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Printing a form field
  FAQ FAQ  Forum Search   Register Register  Login Login

Printing a form field

 Post Reply Post Reply
Author
Message
coach24 View Drop Down
Beginner
Beginner


Joined: 20 May 08
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote coach24 Quote  Post ReplyReply Direct Link To This Post Topic: Printing a form field
    Posted: 20 May 08 at 10:35AM
We're creating pdf's on the fly using QuickPDF and vb.net 2005.  The pdf needs to be printed 3 times with a different value at the bottom of the document each time.  I figured I could use a form field for that and just change the value of the field each time before printing.  However despite calling SetFormFieldPrintable, the field never prints.  It does appear when the pdf is saved however.  Here is a sample of the code.  Any help would be appreciated.  We were using version 4.41 until I found this website and downloaded 5.22.  Same results unfortunately:
 

copyFieldIndex = PDF.NewFormField("Copy", 1)
PDF.SetFormFieldBounds(copyFieldIndex, leftMargin + halfWidth, currentYPosition, halfWidth, fontSize)
PDF.SetFormFieldFont(copyFieldIndex, defaultFont)
PDF.SetFormFieldTextSize(copyFieldIndex, fontSize)
PDF.SetFormFieldValue(copyFieldIndex, "Tower Copy")
PDF.SetFormFieldVisible(copyFieldIndex, 1)
PDF.SetFormFieldPrintable(copyFieldIndex, 1)

The call to SetFormFieldPrintable is returning a 1.
 
Thanks,
Bob

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 08 at 1:32AM
Only an idea ...
For printing the function takes the file which is physically on the disk and not the one from ram?

br,
Ingo 
Back to Top
coach24 View Drop Down
Beginner
Beginner


Joined: 20 May 08
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote coach24 Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 08 at 10:00AM
Well that's probably what I will have to do.  Create the file on the fly, save to disk, reload it, print it, change it, repeat.  Not very elegant but oh well.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store