Jump to content

Visual Basic 6 and Office Automation


Recommended Posts

I am a developer using Visual Basic 6. I have written a program where the user enters some values to text boxes. Depending upon the values, a Word document is created which displays the values entered along with descriptive labels. None of the fields/text boxes are compulsory and the output Word document contains only those non-zero values. The user wants to apply bold formatting only to the values entered by him and not to the descriptive labels. Both the labels and values are to be printed on the same line (in plain and in bold format respectively).

I have done everything else. I am able to create a Word document (.doc) using Visual Basic with all the required contents. I am also able to apply Bold and Underline formatting to an entire line. I am able to use different fonts and font sizes to an entire line. But I am unable to apply bold formatting only to a selected word from a line.

I need the document in the following format:

Today's Price : Rs. 125.00

Available Qty : 10.250

I will appreciate any type of help or suggestion on this. Thank You.

Edited by Eager_Beever
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...