Hi,
Not really sure which area to put this topic in but I hope you'll forgive me as this seems to be an oft requested thing. I've written a DLL which enables you to print from DB and DBPro. At the moment its only text output but I think I see how to make it print images too. More on that when I have the time...
Anyway the link to the DLL and DBPro text file is here.
http://www.eclipsedevelopment.co.uk/PrinterDLL.zip
To use it you must first Load the DLL:
Load Dll "DBPrinter.Dll",1
Then initialise the printer and bring up the printer dialog box:
Call Dll 1,"_PrinterSetup"
Then Start the print job:
Call Dll 1,"_StartPrintJob"
next send the text you want to print:
Call Dll 1,"_PrinterText","This is a test.","Arial",32,50,20
Syntax: Call Dll 1,"_PrinterText",Text$,Font$,FontSize,X,Y
where Text$ is the text you are sending, Font$ is the font you are using, Fontsize is obvious, X is the x co-ordinate on the page and Y is the Y co-ord on the page
You can do as many of these as you like. To finish the print and actually print it you:
Call Dll 1,"_EndPrintJob"
and thats pretty much it. I found on certain printers it seems to print really tiny and i'm not sure why but I'll look into it (it would be great if people that get ultra small output tell me what printer they have) but it seems to work anyway.
Please post comments and suggestions and problems...
Cheers
GC