Page 1 of 1

Print Image without PrintDIALOG()

Posted: Sat Oct 02, 2010 6:45 pm
by max_aigneraigner@web.de
hi,
I have to print some text and a picture to the default printer for my current projekt. (meassurement system that bases on an own gui for industry)

(you can choose the default printer if you want to via an own dialogwindow)
how can I print something without calling the Printdialog()-command?

yours
walker

example-code (doesn't function :( ) :

Code: Select all

str.s = Space(100)
Debug 	GetProfileString_ ("windows", "Device", "1", @str,101)
Debug str  

StartPrinting("hallo welt")
  If StartDrawing(PrinterOutput())
     Box(10,10,100,100,RGB(233,23,23))
  StopDrawing()
  EndIf 
StopPrinting()

Re: Print Image without PrintDIALOG()

Posted: Sat Oct 02, 2010 7:16 pm
by srod

Code: Select all

Result = DefaultPrinter()

Re: Print Image without PrintDIALOG()

Posted: Sun Oct 03, 2010 10:21 pm
by max_aigneraigner@web.de
you... are genious!! thanks a lot guy, you owe me one ^^ ;) [edit] well...other way around..^^[/edit]
i failed to see this solution^^ :) :) :)
yours
walker