We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

this application failed to start because it could no find or load the Qt platform plugin "windows"

Thread ID:

Created:

Updated:

Platform:

Replies:

129728 Mar 30,2017 09:53 AM Apr 6,2017 12:55 AM ASP.NET Web Forms 3
loading
Tags: PDF
Sarath Babu Kola
Asked On March 30, 2017 09:53 AM

i am trying to convert html string to pdf. below is my code.

                string strFilePath = @"C:\Office\temp\temp\test1.html";
                string strHtmlContent = File.ReadAllText(strFilePath);
                HtmlToPdfConverter htmlconverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
                WebKitConverterSettings settings = new WebKitConverterSettings();
                string WebKitBinaryPath = "../../QtBinaries/";
                settings.WebKitPath = WebKitBinaryPath;
                htmlconverter.ConverterSettings = settings;
                PdfDocument pdfDocument = htmlconverter.Convert(strHtmlContent, "");
                string pdffile = @"C:\Office\temp\Maildownloads1\test111.pdf";
                pdfDocument.Save(pdffile);

                pdfDocument.Close();
                pdfDocument.Dispose();

when "htmlconverter.Convert()" execute it throws the above mentioned exception.
                   "this application failed to start because it could no find or load the Qt platform plugin "windows""

Any idea how to fix it.
i am using "Compression, HTMLConverter,pdf" base dlls.

Sarath.

Prakash Viswanathan [Syncfusion]
Replied On March 31, 2017 01:30 AM

Hi Sarath, 
 
Thanks for contacting Syncfusion support. 
 
This exception may occur due to version mismatch of Syncfusion assemblies with QtBinaries. So, please make sure you are using same version of assemblies and QtBinaries. 
 
You can get latest WebKit installer from below link,  
 
You can get specific version of WebKit installer from below link, 
  
After installing the WebKit HTML converter use can get assemblies, QtBinaries and samples from WebKit installed location.  
Example: C:\Program Files (x86)\Syncfusion\WebKitHTMLConverter\15.1.0.37\  
 
If this exception occurs even using same version of Syncfusion assemblies and QtBinaries, please provide more details such as, product version, OS, bit version, culture settings. It will helpful for us to proceed further. 
 
Regards, 
Prakash V 


Sarath Babu Kola
Replied On April 5, 2017 06:16 AM

Hi Sarath, 
 
Thanks for contacting Syncfusion support. 
 
This exception may occur due to version mismatch of Syncfusion assemblies with QtBinaries. So, please make sure you are using same version of assemblies and QtBinaries. 
 
You can get latest WebKit installer from below link,  
 
You can get specific version of WebKit installer from below link, 
  
After installing the WebKit HTML converter use can get assemblies, QtBinaries and samples from WebKit installed location.  
Example: C:\Program Files (x86)\Syncfusion\WebKitHTMLConverter\15.1.0.37\  
 
If this exception occurs even using same version of Syncfusion assemblies and QtBinaries, please provide more details such as, product version, OS, bit version, culture settings. It will helpful for us to proceed further. 
 
Regards, 
Prakash V 


Hi Prakash,

thanks, after downloading newer version it worked for me.

thanks,
Sarath.

Prakash Viswanathan [Syncfusion]
Replied On April 6, 2017 12:55 AM

Hi Sarath, 
 
Thanks for your update. 
Please let us know if your need any further assistance on this. 
 
Regards, 
Prakash V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;