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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error in the Sample App

Thread ID:





75104 Jul 14,2008 06:05 AM UTC Jul 14,2008 11:03 AM UTC WinForms 1
Tags: PDF
Administrator [Syncfusion]
Asked On July 14, 2008 06:05 AM UTC

I was trying out one of your samples for creating PDF files. My requirement is to convert an Excel/Word file to PDF. However I could not find a direct method in any of your samples. So I saved the Word file as HTML and tried to convert it to PDF and ran into issues.
When I use your sample code HtmlToPDF it gives the below pasted error if I browse to an html file on my machine.
Can you explain how to fix this, or if there's any other way to conver Excel to PDF.
I am using samples for version

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.DoEvents()
at Syncfusion.HtmlConverter.HtmlConverter.ToImage(ImageType type)
at Syncfusion.HtmlConverter.HtmlConverter.ConvertToImage(String url, ImageType type)
at Syncfusion.HtmlConverter.HtmlConverter.ConvertToImage(String url, ImageType type, Int32 width, Int32 height, AspectRatio aspectRatio)
at EssentialPDFSamples.Form1.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Sri Subhashini M [Syncfusion]
Replied On July 14, 2008 11:03 AM UTC

Hi Arif,

Thank you for using Syncfusion product.

Here is the answers for your questions,

1)Word to PDF

I am afraid that I was not able to reproduce the issue. Please look into the sample from the below specified link:


Could you please try reproducing it in the above sample or send us the reproducing steps with the couple of PDF files and also your system details so that we could sort out the cause of the issue and provide you a solution?


Essential PDF does not have the support to covert the excel to PDF document. This feature will be available in future release.

Please let me know if you need any further assistance.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon