We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Editing documents online

We're using Aspose for online document editing. The trouble is when a document has something underlined, freetextbox does not recognize it as an underline & is not able to remove the underline. The following is our workflow. What can we do to allow the underlines to be removed? (I had looked into Aspose.Editor in the past, however I see that it has been discontinued, so that is not an option.)

- Code to pull the HTML from the document to load into FreeTextBox.

  • using (MemoryStream stream = new MemoryStream())
  • {
  • docClone.Save(stream, ThisSaveFormat);
  • html = Encoding.UTF8.GetString(stream.GetBuffer(), 0, (int)stream.Length);
  • }

Aspose reads the underlined text as underlined text

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I think you can try using the following code to achieve what you need:

// Get collection of Run nodes.

Node[] runs = doc.GetChildNodes(NodeType.Run, true).ToArray();

// Loop throught all Runs.

foreach (Run run in runs)

{

if (run.Font.Underline != Underline.None)

run.Font.Underline = Underline.None;

}

doc.Save("out.doc");

Hope this helps.

Best regards,

I'm sorry, it seems my question wasn't clear.

I want to know either - how we can pull the html from a document in a way that the textbox will recognize the underline & be able to remove it with the U button or

- another textbox that would recognize the html returned by Aspose & be able to remove the underline

try pasting the following into the online textbox for Aspose's forums:

underlined text

It will show up like this & the U button will not work to remove the underline.

underlined text

Is ther eany solution for this?

I have not heard back on this. Is there any way to do what we require with pulling html & the underlines?

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0pt 5.4pt 0pt 5.4pt; mso-para-margin:0pt; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:SimSun; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

Hi Melissa,

Thanks for your request and sorry for delayed response. I must have missed your last post.

Unfortunately, I cannot suggest you any easy way to resolve the problem. I think, FreeTextBox should support both ways of setting underlining, but it seems it understands only tags. Maybe you should contact FreeTextBox support and ask them to support also text-decoration:underline.

From our end, we will consider outputting underlined text as text. I linked your request to the appropriate issue. We will let you know once it is resolved.

Best regards,

Is there any way to know approximately when it will be fixed?

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Unfortunately, currently, it is difficult to provide you any reliable estimate regarding this issue. We will be sure to inform you of any developments regarding this feature.

Best regards,

I tried contacting freetextbox, but they did not get back to me.

Is there any other textbox that we can use which would read the aspose html properly(we'd be willing to pay if necessary as well)?

Hi Melissa,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I cannot suggest some concrete HTML editor. You can try most popular editors and select one that gives the best result.

Best regards,