PDF Error in draw HTML style text GDI+


Hello, I'm running an example from you "https://www.syncfusion.com/kb/9806/how-to-draw-html-style-text-in-pdf-table-cell-using-c-and-vb -net ", this example runs perfectly. But I copied the code and went to test it in my application, and there is a GDI error, I did some tests, and I verified that with the updated DLLs this error always occurs, if I use the example DLLs I have no error, how can I solve?

See erro !!!





10 Replies

SL Sowmiya Loganathan Syncfusion Team June 4, 2020 02:33 PM UTC

Hi Rogério,   
  
Thank you for contacting Syncfusion support.   
  
We have tried the sample in this KB (https://www.syncfusion.com/kb/9806/how-to-draw-html-style-text-in-pdf-table-cell-using-c-and-vb-net ) in the latest version v18.1.0.55 and it works fine. Please find the sample and output document from below,  
 
 
Could you please provide the below details, so that it will helpful for us to provide the precise solution on this.   
  
Environment details  like OS, bit version. 
Visual Studio version 
  
Regards,  
Sowmiya Loganathan 



RO Rogério June 5, 2020 02:07 AM UTC

hello, follow my settings

Windows 10 Enterprise 64bits   , version  1809
Visual Studio  2019 Enterprise , version   16.5.4




SL Sowmiya Loganathan Syncfusion Team June 5, 2020 12:33 PM UTC

Hi Rogério,   
  
We have tried the provided sample in the specified environment and it works fine in without any issue. Could you please try the sample in your end and let us know the result.   
  
Regards,  
Sowmiya Loganathan  
 



RO Rogério June 6, 2020 03:34 AM UTC

 

I will reinstall VS and components. And do a new test.

I verified that this error only occurs if I try to use some text with HTML. Without html I have no problems.

I don't know if it helps, but in the exception I have an error code returned -2147467259




GK Gowthamraj Kumar Syncfusion Team June 8, 2020 11:03 AM UTC

Hi Rogério,      
     
We have tried to reproduce the reported issue with the provided details, but it is working fine. We have also checked the sample with some HTML text and it generates a PDF document properly. We have attached the sample for your reference. We were unable to reproduce the issue. Kindly please try the below sample in your end and let us know the result.   
  
  
If still you are facing the same issue, kindly provide more details such as complete code snippet, product versions, modify the provided sample to reproduce the issue in our end. So, that it will be helpful for us to analyze and provide you the solution at the earliest.     

Gowthamraj K. 



RO Rogério June 8, 2020 09:20 PM UTC


Hello, I think I discovered the problem, your example works, and I started looking for differences between my project and the example.


 I noticed that the example was in the 4.5.1 framework and mine in the 4.8. So I changed the target of the example to version 4.8 and the error happened.


 I redid the tests and the error appears from version 4.7.1.


Please change the target to version 4.8 and test the example.





SL Sowmiya Loganathan Syncfusion Team June 9, 2020 01:07 PM UTC

Hi Rogério,   
  
Thank you for the details.   
  
We were able to reproduce the reported issue and suspect that this to be a defect. Currently we are validating on this and will update the further details on June 11th, 2020.   
  
Regards,  
Sowmiya Loganathan  
  
 



SL Sowmiya Loganathan Syncfusion Team June 11, 2020 03:28 PM UTC

Hi Rogério,    
 
we have confirmed that the issue with “GDI+ error occurs while adding HTML styled text in PDF grid with .NET Framework 4.8” is a defect. The fix for this issue is estimated to be available on June 18, 2020.     
The status of this issue can be tracked through the following feedback link,  
  
Regards, 
Sowmiya Loganathan 
 



SL Sowmiya Loganathan Syncfusion Team June 18, 2020 01:53 PM UTC

Hi Rogério,     
 
We have confirmed that the issue with “GDI+ error occurs while adding HTML styled text in PDF grid with .NET Framework 4.8” is a defect. We can’t provide the patch for this version 18.1.0.55 since it is a weekly release. We will include this fix in upcoming weekly NuGet release and which is expected to available on June 23, 2020. Also we will include this changes in our 2020 Volume 2 main release expected to available on June 29, 2020.  
 
The status of this issue can be tracked through the below feedback link,  
  
Regards, 
Sowmiya Loganathan 



SL Sowmiya Loganathan Syncfusion Team June 23, 2020 01:52 PM UTC

Hi Rogério,  
 
Thank you for your patience.  
 
We have included the fix for the reported issue “GDI+ error occurs while adding HTML styled text in PDF grid with .NET Framework 4.8" in our weekly NuGet release v18.1.0.59 and please find the download link from below,  
 
We will let you know once Volume 2 is released.  
 
Regards, 
Sowmiya Loganathan 


Loader.
Up arrow icon