Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Page Break in TXT file
Message
De
04/05/2007 15:58:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01222595
Message ID:
01222602
Vues:
13
>>I'm using the following code to create a text file. The user will be using Notepad to open the file. I want to force page breaks at certain points in the text document but I can't seem to get it to work. When I open the document in Notepad, I can see the little square character representing a FF but it has no effect on the printing.
>>
>>What am I doing wrong?
>>
>>Thanks,
>>Robert Wright
>>
>>
>>SET TEXTMERGE TO
>>SET TEXTMERGE ON NOSHOW
>>SET TEXTMERGE TO text.txt
>>\Some text
>>\<<CHR12>>
>>\some more text
>>SET TEXTMERGE OFF SHOW
>>SET TEXTMERGE TO
>>
>
>I suppose with CHR12 you meant CHR(12) - EJECT ESC code.
>But that was for Dot Matrix printers, I am not sure that CHR(12) is the EJECT code in Laser or Jet ones.

On the HP4200 we have here I tried
=STRTOFILE("abcd"+CHR(12)+"wxyz",'ttt.txt')
and got two pages when printing the txt file
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform