Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print file
#3
Do you really need something so complicated?  

Code: (Select All)
pfile$ = _OpenFileDialog$("Select file to print", _CWD$, "*.bas|*.txt", "text files", 0)
If pfile$ <> "" Then
    If _FileExists(pfile$) Then
        Open pfile$ For Input As #1
        Line Input #1, temp$
        Print temp$: LPrint temp$ 'print to screen and printer
    End If
End If

What's wrong with something as simple as the above?  Read a line, print a line?
Reply


Messages In This Thread
print file - by bplus - 04-06-2024, 06:00 PM
RE: print file - by Dimster - 04-07-2024, 01:58 PM
RE: print file - by SMcNeill - 04-07-2024, 07:22 PM
RE: print file - by bplus - 04-07-2024, 08:51 PM
RE: print file - by Dimster - 04-08-2024, 06:03 PM
RE: print file - by bplus - 04-08-2024, 06:15 PM
RE: print file - by Dimster - 04-08-2024, 07:58 PM
RE: print file - by bplus - 04-08-2024, 08:29 PM
RE: print file - by Dimster - 04-08-2024, 09:07 PM
RE: print file - by SMcNeill - 04-08-2024, 09:49 PM
RE: print file - by Dimster - 04-09-2024, 01:03 PM
RE: print file - by eoredson - 04-27-2024, 03:37 AM



Users browsing this thread: 1 Guest(s)