Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a Printer/Tester
#2
first couple of tries were solid blocks of black, so i modified your code to get desired results 65 66 lines per page
Code: (Select All)
PrintScreen = _NewImage(850, 1100, 32) 'to represent an 8.5" x 11" sheet of paper
Screen PrintScreen
Color &HFF000000, &HFFFFFFFF
File$ = _OpenFileDialog$("Choose file to Print", _CWD$, "*.*", "Any File")
If File$ <> "" Then
    Open File$ For Binary As #1
    Cls
    Do
        Line Input #1, temp$
        Print temp$
        pline = pline + 1
        If pline > 65 Then 'we probably scrolled the page.  Rip off this sheet of paper and start a new page!
            _PrintImage PrintScreen
            Cls
            pline = 0
        End If
    Loop Until EOF(1)
    _PrintImage PrintScreen
    Close
End If

looks like it is fitting about 100+ chars across page and continues onto next line if it runs over, so lines wont fit page if lines continuously go beyond 100 chars.

look forward to fonts and color keywords Smile oh wait, i don't have ink i use B&W toner ;(
b = b + ...
Reply


Messages In This Thread
Need a Printer/Tester - by SMcNeill - 06-03-2024, 11:08 PM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 12:11 AM
RE: Need a Printer/Tester - by SMcNeill - 06-04-2024, 02:23 AM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 09:02 AM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 09:20 AM
RE: Need a Printer/Tester - by JRace - 06-04-2024, 03:13 AM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 10:01 AM
RE: Need a Printer/Tester - by SMcNeill - 06-04-2024, 10:17 AM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 10:28 AM
RE: Need a Printer/Tester - by SMcNeill - 06-04-2024, 10:53 AM
RE: Need a Printer/Tester - by SpriggsySpriggs - 06-04-2024, 11:12 AM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 11:20 AM
RE: Need a Printer/Tester - by SMcNeill - 06-04-2024, 11:30 AM
RE: Need a Printer/Tester - by SpriggsySpriggs - 06-04-2024, 06:22 PM
RE: Need a Printer/Tester - by bplus - 06-04-2024, 07:11 PM



Users browsing this thread: 13 Guest(s)