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. Image for the cookie policy date

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

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.

3 Replies

PV Prakash Viswanathan Syncfusion Team March 31, 2017 05:30 AM UTC

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 



SB Sarath Babu Kola replied to Prakash Viswanathan April 5, 2017 10:16 AM UTC

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.


PV Prakash Viswanathan Syncfusion Team April 6, 2017 04:55 AM UTC

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


Loader.
Up arrow icon