- Home
- Forum
- ASP.NET Web Forms
- this application failed to start because it could no find or load the Qt platform plugin "windows"
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.
SIGN IN To post a reply.
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,
WebKit HTML converter: https://www.syncfusion.com/downloads/latest-version
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 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,WebKit HTML converter: https://www.syncfusion.com/downloads/latest-versionYou 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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
SB Sarath Babu Kola
- Mar 30, 2017 01:53 PM UTC
- Apr 6, 2017 04:55 AM UTC