I'm getting an exception when using Paragraphs.AddFromHtml()

Hello,

I’m using Slides 7.5.1.0, and having three problems, mostly with regard to AddFromHtml():

  1. When importing some simple HTML, calling AddFromHtml() doesn’t result in any exceptions, but the resulting TextFrame doesn’t display the HTML content.
  2. With a more complex chunk of HTML, AddFromHtml() returns an exception – index out of range
  3. When opening the final PPTX file in PowerPoint 2013, I’m getting a “PowerPoint can attempt to repair this file” http://screencast.com/t/m9hxFH5nn

Here’s a complete solution to demonstrate the issues. Thanks for taking a look.

~~ Michael

Hi Michael,


Thanks for inquiring Aspose.Slides.

I have worked with the sample code shared by you and have been able to observe the two issues specified. An issue with ID SLIDESNET-34453 has been created in our issue tracking system to further investigate and resolve the issue. For the issue related to first HTML text, i suggest you to please try using following html text for the time being.

string sampleHTML = “Hello”;

We are sorry for your inconvenience,

Hi Mudassir,

Thanks for the tip about including the html and body tags. We'll be sure to do that going forward.

Looking forward to hearing back about the other items.

~~ Michael

Hi Michael,


I will for sure inform you as soon as the issue will be resolved and will keep you updated if any updates will be shared by our development team.

Many Thanks,

The issues you have found earlier (filed as SLIDESNET-34453) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi,

I am using Slides 8.0.0.0 and having the following problem with regard to AddFromHtml()

1. When importing simple HTML , calling AddFromHtml() works fine , but using Numbered bullets or other complex formatting, I am getting the "Index out of range" exception when saving the PPTX.

Please find the sample HTML text I have used below,

1.test1

2.test2

3.test3

which is saved as below in the db

  1. test1
  2. test2
  3. test3

When trying to render on screen using AddFromHtml() , I am getting the above error.

I am using the latest version of Aspose Slide (8.0.0.0) which shows to have fixed the bug but still facing this issue. Please advice.

Regards,

Vaishnavi K.

Hi Viashnavi K,

I have worked with the HTML string shared by you and have tried adding that to TextFrame. I have been able to observe the issue specified. An issue with ID SLIDESNET-34825 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that we may notify you once the issue will be resolved.

We are sorry for your inconvenience,

Hi Mudassir,

Thank you for looking into the issue.

Looking forward to hear from you on the solution.

Thanks & Regards,

Vaishnavi K.

Hi Mudassir,

In addition to the earlier raised issue, I was unable to render the following HTML tags in the generated PPTX as well

1. Strike -

test

2. Subscript -

test

3.Superscript -

test

The above tags did not reflect any change in the PPTX and only the word "test" was displayed when the PPTX was generated

Another issue was when copying text from MS Word , the text is saved with some additional HTML tags in the DB. When I tried to use AddFromHtml() on the text , I got "EOF in processing directive error"

Eg : I have copied the word "test" from MS word which saved as the following HTML string

<FONT color=#ff0000> <P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT color=#000000><FONT face=Calibri>test<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P></FONT>

On using AddFromHtml() on this string , I got the above mentioned error.

Kindly request your help and support in the mentioned issues.

Regards,

Vaishnavi K.

Hi Viashnavi K,


Many Thanks for your further feedback with us. I have worked with the HTML tags shared by you and have been able to observe the issues specified. An issue with SLIDESNET-34833 has been created in our issue tracking system to investigate and resolve the missing strike through in text frame.

A separate issue with ID SLIDESNET-34834 has been created to investigate and resolve the missing sub script & super script in text frame inside generated PPTX. I have also been able to observe the PPTReadException when using the shared HTML string to text frame. An issue with ID SLIDESNET-34835 has been created in our issue tracking system to further investigate and resolve this issue.

This thread has been linked with the mentioned issues so that you may be automatically notified once the issues will be resolved.

We are sorry for your inconvenience,

Hi Mudassir,

Thank you for your prompt responses to my queries.

Looking forward to hearing from you on the solutions.

Thanks & Regards,

Vaishnavi K.

Hi Mudassir,

With regard to my queries , kindly let me know the ETA on the fixes. My client organization is in plans of procuring the license for Aspose Slides. They are holding their decision for the issues to be resolved.

Please let me know so that we can advise the procurement team to go ahead with the license purchase.

Thanks & Regards,
Vaishnavi K.

Hi Vaishnavi K,


I like to share that the issues shared have been recently created and are pending for investigation in normal support issues queue. Our development team will select and schedule the issues for investigation on their due turn and by then I will be able to share the ETA with you. Actually, the first preference is given to paid Enterprise\Priority support issues. Once the paid support issues are addressed then issues in normal support forum are selected on first come and first serve basis. We will try our best to schedule your issues as soon as possible and let you know about the ETAs.

I will really appreciate your patience in terms of waiting till the issues get resolved.

Many Thanks,

The issues you have found earlier (filed as SLIDESNET-34825) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as SLIDESNET-34834;SLIDESNET-34833) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The updated to AddFromHTML() is working really well, thank you!