PDA

View Full Version : Formating a text or htm file HELP !!!!


lance
08-30-2005, 11:45 AM
Hello,

Im having a problem importing a text file for viewing as a paragraph.

Here are a list of steps im performing.

1. call msinfo32.exe to write to a file named vendor.txt or .htm.
2. I then read this text to a table abd or string
3. I then send it to a paragraph....fails as text works as web object.


Here is what I think the problem is AMS cannot read unicode. If I save this file as .htm I can display it in a web object no problem. But it is unformatted and looks like a bunch of garbage. If I save it as .txt and attempt to view it in a paragraph it bombs. Below is a sample of the text I need .... I have no idea how to format it so that it looks decent. Nor can i display it .. any help would be appreciated



*******************sample text***********************
System Information report written at: 08/30/2005 11:12:23 AM
[System Information]

[ Following are sub-categories of this main category ]

[System Summary]

Item Value
OS Name Microsoft Windows 2000 Professional
Version 5.0.2195 Service Pack 4 Build 2195
OS Manufacturer Microsoft Corporation
System Name USHQ7685BURNER
System Manufacturer IBM
System Model 679021U
System Type X86-based PC
Processor x86 Family 15 Model 1 Stepping 2 GenuineIntel ~1794 Mhz
BIOS Version PhoenixBIOS 4.0 Release 6.0 for IBM NetVista.
Windows Directory C:\WINNT
System Directory C:\WINNT\system32
Boot Device \Device\Harddisk0\Partition1
Locale United States
User Name MPI\lfahey
Time Zone Central Daylight Time
Total Physical Memory 260,848 KB
Available Physical Memory 11,096 KB
Total Virtual Memory 893,304 KB
Available Virtual Memory 201,340 KB
Page File Space 632,456 KB
Page File C:\pagefile.sys

lance
08-30-2005, 12:42 PM
Hello,


Ok I am now able to read the file... i simply convert it to an ansi file . Then bring it in as a string. But i still need to be able to format it....