Printing to my Printer
#12
I recently had occasion to print multiple pages of text from a harvest truck load database. The setup was fairly straightforward.

    DO
        pn% = pn% + 1
        REDIM _PRESERVE pg(pn%) AS LONG
        pg(pn%) = _NEWIMAGE(640, 900, 32)
        _DEST pg(pn%)
        COLOR &HFF000000, _RGB32(255)
        CLS

        'then do the line by line stuff with a for-next loop to control row LOCATE and then setting an alldone% flag when finished
        'other code with in the for-next loop to control when a page breaks

    LOOP UNTIL alldone%

The 640 x 900 yields a precise 80 column by 56 row relationship.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply


Messages In This Thread
Printing to my Printer - by Dimster - 07-12-2022, 03:11 PM
RE: Printing to my Printer - by Pete - 07-12-2022, 05:30 PM
RE: Printing to my Printer - by SierraKen - 07-12-2022, 05:49 PM
RE: Printing to my Printer - by SierraKen - 07-12-2022, 05:50 PM
RE: Printing to my Printer - by bplus - 07-12-2022, 05:53 PM
RE: Printing to my Printer - by Dimster - 07-12-2022, 06:24 PM
RE: Printing to my Printer - by Kernelpanic - 07-12-2022, 09:02 PM
RE: Printing to my Printer - by SierraKen - 07-13-2022, 01:09 AM
RE: Printing to my Printer - by bplus - 07-12-2022, 11:16 PM
RE: Printing to my Printer - by George McGinn - 07-13-2022, 01:25 AM
RE: Printing to my Printer - by Dimster - 07-14-2022, 01:13 PM
RE: Printing to my Printer - by OldMoses - 07-14-2022, 02:39 PM
RE: Printing to my Printer - by Dimster - 07-14-2022, 03:25 PM
RE: Printing to my Printer - by Kernelpanic - 07-14-2022, 03:55 PM
RE: Printing to my Printer - by bplus - 07-14-2022, 04:24 PM
RE: Printing to my Printer - by SMcNeill - 07-14-2022, 05:47 PM
RE: Printing to my Printer - by Dimster - 07-14-2022, 06:33 PM
RE: Printing to my Printer - by SMcNeill - 07-14-2022, 06:54 PM



Users browsing this thread: 7 Guest(s)