Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

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

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: 240
Joined: Tue Dec 21, 2010 2:56 am

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

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

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