FileMyHTML File OutStream1 OutStream Customer Record Customer function wr(t : Text[250]) OutStream1.WRITETEXT(t); FileMyHTML.CREATE('C:\main.doc'); FileMyHTML.TEXTMODE(TRUE); FileMyHTML.CREATEOUTSTREAM(OutStream1); wr('<HTML><HEAD> '); wr('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=cp866"> '); // cp866 means DOS encoding , I had problem with cirillic wr('<META NAME="Generator" CONTENT="Microsoft Word 97"> '); wr('<TITLE>File Title </TITLE> '); wr('</HEAD><BODY> '); wr('<B><FONT FACE="Times New Roman" SIZE=4> '); wr('<P ALIGN="CENTER">Customers '+FORMAT(rec."No.")+' </P> '); wr('</B></FONT> '); wr('<OL> '); IF Customer.FIND('-') THEN REPEAT wr(' <LI>'+ FORMAT(Customer.Name)+'</LI>'); UNTIL CUSTOMER.NEXT = 0 wr('</OL> </BODY></HTML>'); FileMyHTML.CLOSE(); HYPERLINK('C:\main.doc');
Comments