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!
Problems with a checkbox, ... |
Post Reply |
Author | |
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 24 Oct 06 at 12:14PM |
Hi,
the following source I used: http://www.quickpdf.org/forum/forum_posts.asp?TID=232&PN=1&TPN=1 Now i add some checkboxes in it and fill out with this code: Call QP.SetFormFieldValueByTitle(24, "Ja") The Print Preview works fine, but the checkboxes cleared when you print the document, why ? Could anyone help ? Devil |
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
I always use the format of QP.SetFormFieldValue(QP.FindFormFieldByTitle(fieldTitle),fieldValue) when populating field values. This works well for me. I don't know why the other method is causing a problem. Edited by bogey |
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hi bogey,
Call QP.SetFormFieldValue(24, "Ja") or Call QP.SetFormFieldValueByTitle("FeldName", "Ja") doesn't work It's always the same, you can see in the print Preview but when you print, all the checkboxes are empty ! The second problem i have with the checkboxes is that you cannot rotate the arrows in the checkboxes. Call QP.SetFormFieldRotation(Feldindex, 90) Call QP.SetFormFieldRotation(Feldindex, 180) doesn't work The arrows in the checkboxes have always the same position. I used VB6, , can you give me a code sample for a chebox that do the following: test.pdf open and fill out some Textfields and some checkboxes. Only the cheboxes must rotate over 90 angle. after this print out the complete sheet. regrads Devil |
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
This is code that I use to complete fields on a form from a posted HTML form. I have not had problems with checkboxes. fillTime = now() 'default to fill fields unless specified as false ' Determine of the PDF fields should be marked as readonly.
I have never worked with the rotated methods. If the Form is already in landscape mode, wouldn't the filling in data be landscaped? If you are mixing portrait and landscape text on the page, then the rotation may be needed.
|
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hello bogey,
thanks for your example. Unfortunately your example code does not have anything with to do after I searches,….
|
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
It is a sample of generically filling any pdf fields. This block will locate any matching fields in a pdf and fill with posted data. The technique works on text fields and checkboxes.
|
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Helo bogey, surely, but you have times tried to serve code with mine to use? Private Sub Print_on_the_fly_Click() the codes works fine without the checkbox, when you use the checkbox and print the sheet the checkbox always clear. |
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
What is the result returning from the SetFormFieldValueByTitle calls? Can you print them screen for debugging? response.write QP.SetFormFieldValueByTitle("FeldName", "Ja") Does it return a 1?
Edited by bogey |
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hello bogey, yes, response is "1", same response by the: Call QP.SetFormFieldRotation(Index, 90) 'index = Field "Rueckruf"
|
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hi bogey, Now it will be much kurioser than before, ... When I save the pdf formular to to new file and open this file with acrobat, than all is ok. The error expresses itself only with prints on the fly, ... Devil |
|
marian_pascalau
Debenu Quick PDF Library Expert Joined: 28 Mar 06 Location: Germany Status: Offline Points: 278 |
Post Options
Thanks(0)
|
Hi, if you provide your Formular.pdf sample file I may test your problem. Post an URL or send your file to: marian_pascalau(at)hotmail.com PS. Du kannst auch in Deutsch schreiben. Gruß, Marian Edited by marian_pascalau |
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
It sounds like the PDF is correctly created and the problem lies in the print driver. Can you try a different print driver? |
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hi bogey,
not really, first Printer "HP LaserJet 2100" second printer "Canon ML370" on both printer same result !!!
|
|
Devil
Team Player Joined: 15 Dec 05 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Thanks Marian, mail is oin the way, .... Devil
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store