473,378 Members | 1,393 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,378 software developers and data experts.

File I/O in VC 6.0 More options

Hi,

I want to open a MS Word file and want to read the file and display the file contain through VC 6.0

I want to know how it is possible.


Thanks & Regards,
Sabyasachi Banerjee
Nov 20 '06 #1
3 1672
sivadhas2006
142 100+
Hi Sabyasachi,

It is possible by adding the component rich text box to your visual c++ project.

Regards,
M.Sivadhas.
Nov 20 '06 #2
Hi,

How can I add the component rich text box in visual c++ project.

Please inform me.

Regards,
Sabyasachi.
Nov 21 '06 #3
sivadhas2006
142 100+
Hi Sabyasachi,

1. Create a MFC Dialog Based Application.

2. Select Components and Controls from the menu Projcet -> Add To Project

3. Open Registered ActiveX Controls folder and select "Microsoft Rich Textbox Control 6.0"

4. Click the insert button and Click Ok and Once again Ok.

5. Now the rich text box control will be added to the control toolbox.

6. Drag and drop the rich text box control from the control toolbox to the dialog box.

7. Create the control member variable "m_rtbTest" with the help of the class wizard for the IDC_RICHTEXTCTRL1.

Use the following method to load the rich text formated file.

Expand|Select|Wrap|Line Numbers
  1. #define FILE_PATH "c:\\Sivadhas.rtf"
  2. #define RICH_TEXT_FILE 0
  3. #define PLAIN_TEXT_FILE 1
  4. m_rtbTest.LoadFile(FILE_PATH, RICH_TEXT_FILE);
  5.  
If you faced any problem, please inform to me.
All the best...

Regards,
M.Sivadhas.
Nov 21 '06 #4

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

Similar topics

2
by: Francis Lavoie | last post by:
I'm new to python and I'm not sure if I use the ftplib class correctly. I made a programm to update a pseudo-dynamic site via ftp. The site is a static html that include files update by ftp. It...
5
by: Tom Willis | last post by:
How are the expert pythoneers dealing with config files? Is there anything similair to .net's config files or java's .properties? A quick search on google didn't return anything that looked...
3
by: HJK | last post by:
I'm not familiar with ASP and server side scripting. I want to include JScript from file. Can it be done ? Its the part with the Options code I want to put in a Options.js file not accessible...
0
by: George G. | last post by:
I am exporting a report to an Excel file. Whatever options I use for the formatting the results remain the same. I have set the ExcelTabHasColumnHeadings to true and false without any difference. I...
5
by: Phil Kelly | last post by:
Hi I need to write the contents of a structure to a binary file - there is one string and 2 integers, but I can't seem to figure out how to write the data correctly. If I am simply writing...
4
by: News | last post by:
Hi Everyone, The attached code creates client connections to websphere queue managers and then processes an inquiry against them. The program functions when it gets options from the command...
8
by: Andrew Robert | last post by:
Hi Everyone. I tried the following to get input into optionparser from either a file or command line. The code below detects the passed file argument and prints the file contents but the...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
0
by: Admin Matt | last post by:
Hi, I am using Visual Basic 2008 and was wondering what the easiest way is to dump an entire SQL database in to a new Access file. I know about DTS and etc but I want to do this straight from a...
0
by: Phill W. | last post by:
rbr wrote: If the Request and Response are Serializable (and I think they ought to be), create a SoapFormatter and Serialize each object to a disk file. OK, it won't be the nicest thing to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.