How to Use Spire.Doc for .NET to Indent Titles of Paragraph

Technical support for Spire.Doc

Moderator: iceblue support

How to Use Spire.Doc for .NET to Indent Titles of Paragraph

Postby linda.masha » Thu Jan 13, 2011 5:06 am

Hi Experts,

I want to indent my every topic titles before paragraphs in my word document with Spire.Doc for .NET. Could you please tell me how to do it with C# codes?
linda.masha
 
Posts: 5
Joined: Thu Dec 23, 2010 1:17 am

Re: How to Use Spire.Doc for .NET to Indent Titles of Paragr

Postby iceblue support » Thu Jan 13, 2011 7:13 am

ParagraphStyle style1 = new ParagraphStyle(section.Document);
style1.Name = "style1";
style1.CharacterFormat.FontName = "Arial";
style1.CharacterFormat.Bold = true;
style1.CharacterFormat.FontSize = 12;
style1.ParagraphFormat.LineSpacing = 1.5F * 12F;
style1.ParagraphFormat.LineSpacingRule = LineSpacingRule.Multiple;
section.Document.Styles.Add(style1);

for (int i = 0; i < 10; i++)
{
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText(String.Format("Topic{0}", i));
paragraph.ApplyStyle(style1.Name);
}

1(point) = 0.3528 mm

:lol:
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am

How to convert multipage word file into a single image using

Postby parzoo0 » Fri Jun 29, 2012 12:13 pm

Hi,

In you product spire.doc is supporting to convert multipage word file into a single image, if so then send me a sample code then i will purchase it
parzoo0
 
Posts: 1
Joined: Fri Jun 29, 2012 5:59 am

Re: How to Use Spire.Doc for .NET to Indent Titles of Paragr

Postby nancy » Mon Jul 02, 2012 2:27 am

Hi parzoo0,

About your problem, we have received your reply, we will send you a demo as soon as possible. Thank you for your cooperation and understanding.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Nancy
e-iceblue support
support@e-iceblue.com
Nancy
e-iceblue support team
contact: nancy.wang@e-iceblue.com
User avatar
nancy
 
Posts: 51
Joined: Wed May 30, 2012 2:02 am

Re: How to Use Spire.Doc for .NET to Indent Titles of Paragr

Postby nancy » Tue Jul 03, 2012 5:09 am

Hi parzoo0,

About your problem, I have writed a demo for you in the attachment. You can refer to it and you may resize the width and length of picture according what you need. If you still have any problems, welcom to contact me! Thank you for your cooperation and understanding.
You do not have the required permissions to view the files attached to this post.
Nancy
e-iceblue support team
contact: nancy.wang@e-iceblue.com
User avatar
nancy
 
Posts: 51
Joined: Wed May 30, 2012 2:02 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 1 guest