Print Image without PrintDIALOG()

Just starting out? Need help? Post your questions and find answers here.
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Print Image without PrintDIALOG()

Post 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()
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Print Image without PrintDIALOG()

Post by srod »

Code: Select all

Result = DefaultPrinter()
I may look like a mule, but I'm not a complete ass.
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Re: Print Image without PrintDIALOG()

Post 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
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
Post Reply