Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

"Style separator" support

Last post 09-03-2010, 10:56 AM by alexey.noskov. 3 replies.
Sort Posts: Previous Next
  •  09-03-2010, 3:30 AM 256932

    "Style separator" support

    Attachment: Present (inaccessible)
    Hi,

    I have a number of documents that use a Word feature I haven't seen before: a "style separator". These characters are being treated as an ordinary end of paragraph marker in Aspose. I was wondering if there is any way to detect the symbol in order to adapt the behaviour of my program. I.e. a style separator is an end of paragraph marker that does not cause the rendering to continue on a new line, but rather, to continue immediately after the previous paragraph.

    See attached Word doc.

    Regards,
    Mark..
     
  •  09-03-2010, 5:20 AM 256956 in reply to 256932

    Re: "Style separator" support

    Hi

     

    Thanks for your inquiry. In your case, Paragraph break mark is hidden that is why there is no line break. You can generate the similar document using code like the following:

     

    DocumentBuilder builder = new DocumentBuilder();

    // insert a paragraph with hidden paragraph end.

    builder.CurrentParagraph.ParagraphBreakFont.Hidden = true;

    builder.Writeln("Test");

    builder.CurrentParagraph.ParagraphBreakFont.Hidden = false;

    builder.Write("This is another paragraph");

    // Save output

    builder.Document.Save(@"Test001\out.doc");

     

    But in this case, there is no line break only if “Show/Hide” option is disabled. This is because internally there are two options “Hidden” and “SpecialHidden”. In your document, both these options are set. But programmatically, you can set only the first.

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  09-03-2010, 7:48 AM 256972 in reply to 256956

    Re: "Style separator" support

    That's great, thanks! That solved the immediate problem. Any chance of "Special hidden" being able to be set in the future? Our clients might get confused if the document looks different when they toggle "show hidden characters".. Regards, Mark.
     
  •  09-03-2010, 10:56 AM 257011 in reply to 256972

    Re: "Style separator" support

    Hi

     

    Thanks for your request. We will consider exposing this attribute in one of future versions. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML