If you are asking for what I think, you are out of luck.  Text is just what it 
says: Plain Text!  If you want files which have some kind of formatting (font 
size, font style, font color, bold, etc) the files must be generated in a 
application which supports those things and saved as some type of binary or 
marked up file (.rtf comes to mind) and then must be opened by an application 
which supports the file type.  Notepad allows users to change the font 
size/style for "viewing" and each machine may have different font sizes/styles 
when opening the exact same document.  

If I am not mistaken, printing from Notepad will print exactly like the current 
view style (I dont have time to test).  If you control the printing of the 
files to disk in the first place, you could write them as an excel file using 
the Spreadsheet::WriteExcel(?) module and have the users open the file in Excel 
and print from there.   This would allow some fairly powerfull formatting 
options.  If you dont write the files to disk, then you can even read them in 
via script/exe you build and convert them to Excel and then open the document 
in Excel.

Note: Any where Excel is mentioned, you could probably substitute Star Office's 
Spreadsheet program, although I have not tested it.

If this is on Windows and you/they have Excel installed, I would highly suggest 
using the Win32::OLE module so you can set columns to the widths you need and 
such.  If you have never played with Win32::OLE to work with Office 
applications, I believe this will greatly increase your knowledge of both 
Perl/OO-ish programming/VB.  Using this to modify Excel Documents via Perl is 
how I learned alot about Perl.

Joe Frazier, Jr.
Technical Support Engineer
Peopleclick Service Support

Tel:  +1-800-841-2365
E-Mail: mailto:[EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 05, 2002 12:37 PM
> To: Borus Gabor
> Cc: Perl List
> Subject: Re: [perl-win32-gui-users] Re: WYSIWYG
> 
> 
> 
> I'm not looking for a tool to desing a gui window I'm looking 
> for some way
> to have whatever text comes up on the richtext field look 
> exactly like what
> will be printed out.  Spacing, size, indents, etc....
> 
> 
> 

Reply via email to