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!
![]()  | 
 
SetFormFieldCheckStyle bug | 
 
    Post Reply  
   | 
  
| Author | |
   
   geonetwork  
   
   Team Player  
   Joined: 12 Mar 07 Status: Offline Points: 27  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: SetFormFieldCheckStyle bugPosted: 08 Jun 18 at 11:06AM  | 
 
| 
   
    Another strange different behavior (imho another bug) from version 12 to 15: if you put the SetFormFieldCheckStyle instruction before SetFormFieldBound check fields will not be printed (see 1.jpeg). If you invert the instructions you will have the correct print (2.jpeg) var   QP: TDebenuPDFLibrary;   nFieldIndex: integer;   i,n: integer; begin   QP:=TDebenuPDFLibrary.Create;   try     QP.UnlockKey('xxx');     QP.SetOrigin(1);     QP.SetMeasurementUnits(1); // mm.     QP.SetPageDimensions(210, 297); // A4     QP.SelectPage(n);     QP.AddFormFont(QP.GetFontID(4));     QP.SetTextSize(10);     for i:=1 to 3 do begin       nFieldIndex:=QP.NewFormField('FIELD'+IntToStr(i),3);       QP.SetFormFieldCheckStyle(nFieldIndex,0,1); // <- if you put this instruction here pdf printed haven't the cross (1.JPEG)       QP.SetFormFieldBounds(nFieldIndex,40,46+(i-1)*15,5,5);       // QP.SetFormFieldCheckStyle(nFieldIndex,0,1); // <- if you put this instruction here pdf printed have the cross (2.JPEG)     end;     QP.SaveToFile('c:\temp\output.PDF');     ShellExecute(self.Handle,'open','c:\temp\output.PDF','','',SW_SHOWMAXIMIZED);   finally     QP.Free;   end; end; 1.JPEG ![]() 2.JPEG ![]()  | 
 |
![]()  | 
 |
   
   Ingo  
   
   Moderator Group  
    
   Joined: 29 Oct 05 Status: Offline Points: 3530  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 Jun 18 at 8:01PM | 
 
| 
   
    
   Why you're posting errors here? 
   
  Here's nobody to change them ;-) BTW: Good for the users here getting you're work around. Thanks for it.  | 
 |
| 
   
     
     Cheers, 
   
  Ingo  | 
 |
![]()  | 
 |
   
   geonetwork  
   
   Team Player  
   Joined: 12 Mar 07 Status: Offline Points: 27  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 13 Jun 18 at 3:27PM | 
 
| 
   
    WorkAround in version 13 or above: QP.SetNeedAppearances(1) 
    | 
 |
![]()  | 
 |
    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