Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to correctly load .DAT files in Word 2000

Status
Not open for further replies.

June1975

Programmer
Jul 22, 2003
35
GB
Has anyone come across a problem whereby .DAT files (in this case its a simple text file that contains custom markup for loading back into a database) do not open correctly in word 2000.

What happens is that the first few lines load correctly but then the rest of the document loads into the document propeties part of the Word Doc!

Does Word 2000 handle tag/markup in certain ways.....

It is ok in Word 97
 
All I am doing is doubl clicking the .dat file from the desktop to load into Word 2000
 
No Wizard does not come up. Here is an example....

.DAT File contents

@pcp_table<p>
<Main><9>
Update
<p>
<Display><9>
1
<p>
<Title><9>
Sections updated since last full Profile 24th June 2004
<p>
<AA><p>
<Head1>
<9>
Date
<9>
Section
<9>
Details
<p>
<Row1>
<9>
February 15th 2005
<9>
Corporate
<9>
Introduction
...........
.............
...........

When you try an opne the above in Word 2000 all I get is

@pcp_table

Update

1

Alot of the content goes into the document properties settings. So it look like the markup stuff in angle brackets is doing something else?.......
 
yes that does work but I need to open it in Word as our edotors use variuos Word Macros that applied through the doc. Also they use manu of Words funtionality such as word Count, Spell Check etc etc and usually the idela environment to work in.....
 
I did not find anyway around this problem.

So 2 solutions

1- Open with Notepad and copy+paste into word. This works fine.

2- As you are using macros then create a macro to load the file. You can use either a predetermined file name/location or you can use a common dialog to get the filename to open.



Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top