numbering in word through c#
-
27 aprilie 2012 12:43How can we achieve numbering in word through c#
- Tip modificat Rudedog2MVP, Moderator 27 aprilie 2012 13:21 : post is a question :
Toate mesajele
-
27 aprilie 2012 13:07We can print out 'one', 'two', 'three',.. and so on. Or did you have something other than that in mind? E.g. numbering pages in MS Word, or numbering paragraphs, or sentences.
Regards David R
---------------------------------------------------------------
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute. -
27 aprilie 2012 16:33
i mean numbering paragraphs and sentences
e.g
2
-2.1
-2.2
Regards,
Vaibhav
-
27 aprilie 2012 16:48
Is that in MS Word? In that case you will need to know something about Interop and the Word object model. But why not just use Word? You do not say what you are trying to do. So I can only suggest broad areas to look at.
If you want specific help, tell us what you want to do, what you have tried and what problems you have met. Then maybe someone can suggest an answer.
Regards David R
---------------------------------------------------------------
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute. -
30 aprilie 2012 10:53
Hi,
I am looking for the c# code snippet for numbering/re-numbering sentences or paragraphs in MS word. Can any body help me with this?
Regrads,
Viabhav
-
30 aprilie 2012 10:56
What has incommon
2,
-2.1 and
-2.2
?
Sorry, but it makes no sence. Did you mean 2, 2.1, 2.2, 2.3,...?
Mitja
-
2 mai 2012 06:40
I need something like this one:
1.1 Activity Name
Text....
1.2 Activity Description
Text....
1.3 Activity Properties
Text....
2.1 Activity Name
Text....
2.2 Activity Description
Text....
2.3 Activity Properties
Text....
-
2 mai 2012 06:49
Can any body help me with this?
Google can. Well it might point you to something that helps. :)
Regards David R
---------------------------------------------------------------
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
Object-oriented programming offers a sustainable way to write spaghetti code. - Paul Graham.
Every program eventually becomes rococo, and then rubble. - Alan Perlis
The only valid measurement of code quality: WTFs/minute. -
2 mai 2012 08:44
Hello,
what i understand is that u want to increase the number after dot.
u can make a for loop for that
try this code :-
string number,temp; temp = "1"; for(int i=1;i<=10;i++) { number = temp; number = number + "."+ i.ToString(); if (i == 10) { temp = (Convert.ToInt16(temp) + 1).ToString(); i = 0; } textBox2.Text =textBox2.Text + " " +number; }
output will be like dis , make change as per ur requirment
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 2.1 2.2
-- Thanks, Amit kala Please remember to click “Mark as Answer” on the post that helps you, & to click “Unmark as Answer” if a marked post does not actually answer your question.
- Marcat ca răspuns de Bob ShenMicrosoft Contingent Staff, Moderator 9 mai 2012 03:03