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!
![]()  | 
 
How to get failed msg when API method returned 0?? | 
 
    Post Reply  
   | 
  
| Author | |
   
   Ingo  
   
   Moderator Group  
    
   Joined: 29 Oct 05 Status: Offline Points: 3530  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: How to get failed msg when API method returned 0??Posted: 20 Oct 20 at 10:22PM  | 
 
| 
   
    
   Directly after the relevant function call. 
   
  For example: //... lv_ok := QP.LoadFromFile(Edit1.text, ''); lv_err := QP.LastErrorCode; if ( lv_err = 411 ) Then // File not found begin //...  | 
 |
| 
   
     
     Cheers, 
   
  Ingo  | 
 |
![]()  | 
 |
   
   mLipok  
   
   Senior Member  
   Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 Oct 20 at 4:34PM | 
 
| 
   
    
   https://www.debenu.com/docs/pdf_library_reference/LastErrorCode.php 
   
  https://www.debenu.com/docs/pdf_library_reference/LastRenderError.php 
    | 
 |
| 
   
     
     Here you can find description how to test my examples: 
   
  http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600  | 
 |
![]()  | 
 |
   
   fletchsod  
   
   Team Player  
   Joined: 11 Sep 20 Status: Offline Points: 40  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 Oct 20 at 4:08PM | 
 
| 
   
    
   Is there an API that can give us a failed message when a method returned 0?   
   
  There are some methods that returned 1 for success & 0 for error, they are     MergeDocument()    LoadFromString()    SetNeedAppearances()    SetFormFieldValueByTitle()    FlattenAllFormFields() etc. We would like to know why & see if the failed message give us hint on fixing the scripts that is causing the error. Thanks. 
    | 
 |
![]()  | 
 |
    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