Print Page | Close Window

Printing a form field

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=897
Printed Date: 14 May 24 at 9:01AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Printing a form field
Posted By: coach24
Subject: Printing a form field
Date 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




Replies:
Posted By: Ingo
Date 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 


Posted By: coach24
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk