Announcement

Collapse
No announcement yet.

Page Break

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Page Break

    How do I put a page break in a text file. So when I print the file
    it's on different pages
    Inv. Mark Nelson

  • #2
    Mark,


    The ASCII formfeed character is decimal 12.

    This will only work if the text is sent directly to the printer and assuming the printer supports standard text files. (I have run into a few Windows only printers that need Windows print drivers to print. Similar to a winmodem not supporting Hayes commands )

    ------------------
    James Moneypenny
    mailto:[email protected][email protected]</A>

    Comment


    • #3
      do you have any code for this ?

      ------------------
      Inv. Mark Nelson

      Comment


      • #4
        If you're printing pure text with LPRINT, try...

        Code:
        LPRINT CHR$(12);
        -- Eric

        ------------------
        Perfect Sync: Perfect Sync Development Tools
        Email: mailto:[email protected][email protected]</A>

        "Not my circus, not my monkeys."

        Comment


        • #5

          James,

          >This will only work if the text is sent directly to the printer

          Not true, see the thread in the PC/CC section of this forum
          titled: Need advice on printing to a dot matrix printer.

          Moreover, direct printing over a network could wreak havoc. MS
          may even disallow this in future versions of Windows.

          Your right, though, about the printer needing to offer ESC (text)
          services before $FF (CHR$(12)) insertion will work.

          Andy
          THREE Systems

          ------------------

          Comment


          • #6
            Any code out here for printing right to a printer??

            ------------------
            Inv. Mark Nelson

            Comment


            • #7
              Andy,

              What I mean by "directly" is sending raw data (Using LPRINT as Eric suggested or copying to LPT port) to the printer. As for printing over the network, Windows still lets us use NET USE to capture the LPT port to a network printer even if the hardware port does not exist.

              Thanks for pointing that out. My misuse of the word "directly".
              James

              ------------------
              James Moneypenny
              mailto:[email protected][email protected]</A>

              Comment


              • #8
                Thank You ,

                I am going to try that ??

                ------------------
                Inv. Mark Nelson

                Comment


                • #9
                  We installed the plain text printer driver..



                  ------------------

                  Comment

                  Working...
                  X