> >LOCAL lcFonton, lcFontOff >lcFonton='<font size="1" face="Courier">' >lcFontoff='</font>' >set device to file c:\programnotes\prtemp.htm >@1,1 say "This is a test line 1." >@2,1 say "This is line 2." >@3,1 say "This is line 3." >@4,1 say "This is line 4." >@5,1 say "This is line 5." >eject >set device to screen >m.duh=FILETOSTR('c:\programnotes\prtemp.htm') >m.duh='<html><body>'+lcfonton+CHR(13)+m.duh+CHR(13)+lcfontoff+'</body></html>' >=STRTOFILE(m.duh,'c:\programnotes\reportview.htm') > >>
>This is a test line 1. This is line 2. This is line 3. >>etc. All lines are on one line in the htm file. The htm file is correct:
><html><body><font size="1" face="Courier"> > > This is a test line 1. > This is line 2. > This is line 3. > This is line 4. > This is line 5. ></font></body></html> >>but I'm obviously missing new line commands or something. Am I going to have to parse the results somehow? I hope not...
>> >>** 1 >>if printcmd = 'N' >> set device to file c:\prtemp.htm >>else >> set device to print >>endif >> >>** 2 >>** old >>*!* *** SET CPI FOR LASER PRINTER >>*!* mp10 = 'chr(27)+"(s0p10H"' >>*!* mp12 = 'chr(27)+"(s0p12H"' >>*!* mp16 = 'chr(27)+"(s0p16.66H"' >> >>** new >>*** SET CPI FOR LASER PRINTER >>mp10 = ['<font size="3">'] >>mp12 = ['<font size="2">'] >>mp16 = ['<font size="1">'] >> >>** 3 >> set device to screen >> m.duh=FILETOSTR('c:\prtemp.htm') >> m.duh='<html><body>'+CHR(13)+m.duh+CHR(13)+'</body></html>' >> =STRTOFILE(m.duh,'c:\reportview.htm') >> >>>>