I am having an issue with the Heading styles. Right now I am setting a portion of my text to use Heading Style 1 (code below), which seems to be working but Heading 1 is not defined as anything for the document. Is there a way to set the styles for Heading1 so it knows what it should look like.
-- sectionHeader is just plain text
-- GetTextStyleIdentifier just returns StyleIdentifier.Heading1
...
string textStyle = "HEADING1";
paragraph.ParagraphFormat.StyleIdentifier = ASPOSEHelpers.GetTextStyleIdentifier(textStyle);
docBuilder.Write(sectionHeader);
...
when i click on the heading in the document it says it is set to Heading1 but it remains as Arial 10pt and just Bold's it. Thanks in advance. If you need anything else, let me know.
Doug