Hi
Dyana,
Thank you for your
interest in Syncfusion products.
We have prepared
the sample to illustrate your requirement to Append HTML tags into the word
document using DocIO. Please do find the sample for the same from the
attachment. Try running the sample and let us know if this helps you.
Please let us know
if you have any other questions.
Regards,
Hi
Dyana,
Thank you for your update
We have prepared a sample to illustrate your requirement to replace a BookMark
with HTML formatted string into the word document using DocIO. Please do find
the sample from the attachment and let us know if this helps you.
Please let us know if you have any other questions.
Regards,
Hi Dyana,
Thank you for your update.
We have prepared a sample to illustrate your requirement to
replace a Bookmark with HTML formatted string into the word document using
DocIO. Please do find the sample from the attachment and let us know if this
helps you.
Please let us know if you have any other questions.
Regards,
Deiva selvan
Hi Dyana,
Thank you for your update.
We have prepared a sample to illustrate your
requirement to set size of the image while Append the HTML formatted string
into the word document using DocIO. Please do find the sample from the
attachment and let us know if this helps you.
Please let us know if you have any other questions.
Regards,
Deiva selvan
Hi
Ricardo,
Sorry
for the inconvenience.
Currently
our servers are under maintenance, hence the sample that we updated in our last
response could not be downloaded. We will let you know once the server
maintenance process is completed. You may also check our website periodically
for latest information regarding this.
Please
let us know if you have any questions.
Regards,
Sivasubramanian
Hello Guys,
I am facing same issue when exporting HTML content to Word document. Images are not getting displayed. I saw that you guys have prepared some sample application. But source code is not downloadable. can you please let me know when it will be available? Is it possible for you to send me that source code in email as this is urgent for me?
Thanks
Hi Sree,
Thank you for your update.
We have prepared a sample to illustrate your requirement to
set size of the image while Append the HTML formatted string into the word
document using DocIO. Please do find the sample from the attachment and let us
know if this helps you.
Please let us know if you have any other questions.
Regards,
Sathish
Hi,
I have the same problem, when converting a html file to word document, images are not displaying in the document,I was trying to get the example ZIP file but I get a message with resource not found, and is it possible to extract images from html and keep that in a images folder and also i want to convert that html file to xml, please provide us the solution.Thanks in advance,Ashok
Hello Guys,
I am facing same issue when exporting HTML content to Word document. Images are not getting displayed. I saw that you guys have prepared some sample application. But source code is not downloadable. Can you please let me know when it will be available? Is it possible for you to send me that source code in email as this is urgent for me?
Thanks
Aneesh
Hi Aneesh,
Thank you for contacting Syncfusion support.
Regarding Image size setting while inserting XHTML string:
Kindly use the below code to resert the image size while inserting the XHTML string in Word document.
Code example:
string htmlString = "<html><body><img src='Imagepath' width='300' height='300'></img></body></html>";
secion.Body.InsertXHTML(htmlString);
If this doesn’t meet your requirement then kindly provide us your HTML string and input image file. Thereby we will investigate further on this issue and provide you the appropriate solution at the earliest.
Extracting images from HTML document:
Kindly use the below code to extract Images from a document and save to the disk.
Code example:
//Iterate paragraph items
foreach (ParagraphItem item in para.Items)
{
//Checks for WPicure instance
if (item is WPicture)
{
WPicture picture = item as WPicture;
//Loads the byte array into memory stream
MemoryStream stream = new MemoryStream(picture.ImageBytes);
//Loads the stream in Image
Image image = Image.FromStream(stream);
//Saves the image
image.Save(@"path");
}
}
Regarding HTML to XML conversion:
Could you please let us know which kind of XML file you are looking for? Whether Word document ML format XML or normal XML file? If you provide us your exact requirement then we will analyse further on this and provide you proper solution.
Regards,
Sathish