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.
Unfortunately, activation email could not send to your email. Please try again.

change the hidden Fontattribute to unhidden

Thread ID:

Created:

Updated:

Platform:

Replies:

76510 Sep 10,2008 07:14 AM Sep 10,2008 08:50 AM Windows Forms 1
loading
Tags: DocIO
Oliver Fürst
Asked On September 10, 2008 07:14 AM

Hello,

I want to use DocIO to changethe FontStyle Attribute Hidden to unhidden. How can I do that ?

The other possibility would be to extract a text between to hidden text and save it in Word Format (doc). Would this be possible ?

Greetings Oliver


Bhuvaneswari P [Syncfusion]
Replied On September 10, 2008 08:50 AM

Hi Oliver,

Yes, it is possible to show the already hidden characters by using the Character format Hidden property. Please refer the below code snippet how it can be done

[C#]

WordDocument doc = new WordDocument("sample.doc");

//Enumerate the document elements starting from sections
foreach (IWSection sec in doc.Sections)
{
foreach (IWParagraph para in sec.Paragraphs)
{
for (int i = 0; i < para.ChildEntities.Count; i++)
{
Syncfusion.DocIO.DLS.IParagraphItem pItem = para[i] as Syncfusion.DocIO.DLS.IParagraphItem;

if (pItem is WTextRange)
{
WTextRange doctext = pItem as WTextRange;
if (doctext.CharacterFormat.Hidden == true)
{
doctext.CharacterFormat.Hidden = false;
}
}


}
}
}


Please try this code and let us know if this helps you.

Best Regards,
Bhuvana




CONFIRMATION

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.

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.

;