• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

printing variables

MrDudeMan

Lifer
literally.

LOL

Code:
Private Sub CommandButton2_Click()
 
    Dim rapor As String
    rapor = "Hello World"
    rapor.PrintOut Copies:=1, Collate:=True
    MsgBox (rapor)
 
End Sub

I don't know why, but the last sentence of the first reply made me crack up.

You cannot simply send a variable to the printer.
 
In VB 6.0 this was actually possible.
You could do this:

Printer.Print "text"

Printer.Print variable

Printer.NewPage
 
In an old version of HP basic (1980s, e.g. HP85), saying..

PRINT "Hello World"

Would print out, immediately on the the printer!

(DISP would display to the screen).
 
One does not simply...




Send a variable to the printer.

[sorry for the low rent version, memegenerator timed out on me.]
 
I think it was older tetex toolchain (compiles LaTeX) that by default did send the PostScript output to default printer rather than to a file.

Gone are the days when display was sheer luxury and printer was the primary output device.
 
Back
Top