473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

how to make selected text in a .doc file bold

bajajv
152 100+
Hi,
I have a .doc file. It is in the below format
1. Question......
Ans.........
2. Question....
Ans.....
and so on.

Now, I want that I select the question line and make it bold.
I can give logic to reach the question line, but how to select it and then how to make it bold?

Thanks.
Aug 9 '07 #1
6 2341
sicarie
4,677 Expert Mod 4TB
What do you mean, you want to select it? Are you trying to make this display a certain way on a screen? Will this be scrolling, or do you want to just open it in whatever word processing program is the default for the file type?
Aug 9 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
Whose .doc file? Word?

You may need the Office SDK for this one.
Aug 9 '07 #3
bajajv
152 100+
What do you mean, you want to select it? Are you trying to make this display a certain way on a screen? Will this be scrolling, or do you want to just open it in whatever word processing program is the default for the file type?
No, I don't want to display it, i just want to make the question lines bold.
Aug 9 '07 #4
bajajv
152 100+
Whose .doc file? Word?

You may need the Office SDK for this one.
And from where can I get this Office SDK? Is it freely available on net?
Aug 9 '07 #5
weaknessforcats
9,208 Expert Mod 8TB
Start here.

Let me know if this gets you started.
Aug 9 '07 #6
sicarie
4,677 Expert Mod 4TB
Start here.

Let me know if this gets you started.
Let him know if it doesn't, too ;)
Aug 9 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Imaya Kumar | last post by:
Hi, i'm developing an editor in VS.NET using Rich Text Box Control. I need to make a selected text Bold. how can i do this? also i will have an Italic Button too. If i click Bold button the...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
3
by: gooderthanyou | last post by:
I have a textfield and you of course you can select text... When they hit the bold button I want it to obtain the selected text and bold it, the hard part is trying to figure out if javascript...
3
by: TM | last post by:
I have a messagebox and I would like to display a message along with the some selected text I am searching for. But I would like the selected text to appear as bold. I would like my message...
9
by: Jason | last post by:
If I've got Me.RichTextBox1.Text = "In Ricn Tex Box" Me.RichTextBox1.Text &= "Line two" & vbCrLf How do I make the first line appear BOLD?
6
by: andreas | last post by:
A selected text has fontstyles like bold and italic and underscore I want to remove one of them without changing the other fontstyles. How to do that? Thanks for any response
4
by: Xenomorph | last post by:
I have a program where you click an item on the TreeView on the left, and then work with whatever pops up on the right. There are many entries on the TreeView, and when you click something on the...
1
by: malathib | last post by:
Hi, I am trying to do the following in firefox.Please suggest the solution that will be applicable to firefox only. I am having one xml and xslt file. I kept the xml file content in iframe. Now...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.