How do I select an output DEVICE in FB?

General FreeBASIC programming questions.
Post Reply
integer
Posts: 408
Joined: Feb 01, 2007 16:54
Location: usa

How do I select an output DEVICE in FB?

Post by integer »

Attached to my system:
hp designjet printer
epson printer
pdf creator
word pad
note pad
How is it possible to select one of those devices in FreeBasic?

At the moment, in FreeBasic, I send the output to a disk file (as: open "temp.txt" for output as #1)
After a few (or perhaps a thousand) lines are output, I close the file & Exit FreeBasic
Activate wordpad
open the file and at that point I can select any of the print devices available.

How can this FB output be sent to the PDFcreator, without creating the intermediate text file.

Does there exist a library or add-on that could be used here?

I found a FB forum topic about writing/creating an .rtf file; it was not clear how to change the parms to output .pdf
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: How do I select an output DEVICE in FB?

Post by TJF »

integer wrote: Jul 06, 2023 14:42 Activate wordpad
Sounds like you're on wodniws ?! Note: This is the General subforum, here're reading users from all OSs!

What about rising an external process (ie SHELL or RUN or EXEC)? Have a look at the print command.

Regrads
Post Reply