PDA

View Full Version : Help with printing a .bmp file



GeorgeN
10-05-2012, 16:42
I have formatted a printed report that works fine. I'd like to add a logo to the top of the first page. Any hints on how to do this?

Thanks -

George N.

Michael Clease
10-05-2012, 17:06
Hello George,

Welcome to the forum, I think we need some more information about how and what you are doing to provide real help.

Regards

Mike C.

GeorgeN
10-05-2012, 17:27
Thanks for the welcome, Mike.

My program gathers numeric data for a file, does a little math and prints out the results in a row and column format on a local printer. Getting the data, formatting it, and printing it in neat rows and columns (with boxes and lines) on multiple pages is done. What I would like to do is include a .bmp file (our company logo) somewhere at the top of the first page of hardcopy.

I've searched the XPrint commands and so on. I can't figure out how to load a image file onto the page to be printed.

I used to do quite a bit of programing (QuickBasic, Assembler, dBase) but I've been chasing electrons in the analog world for the last 13 years or so and the programming world has changed quite a bit! (Not to mention that I've forgotten quite a bit!)

Regards -

George N.

Michael Clease
10-05-2012, 17:44
That function is not available at the moment but it could be Render (http://www.powerbasic.com/support/help/pbcc/index.htm#xprint_Render_statement.htm)

Mike C.

GeorgeN
10-05-2012, 18:42
Thanks -

I'll see if I can figure something else out.

George N.

ErosOlmi
10-05-2012, 21:49
Hi George,

welcome to thinBasic programming language.
Unfortunately thinBasic had no way to print an image, so I've just added a new command called XPRINT_Render.
Syntax is the following:

XPRINT_Render(BmpFileName, x1, y1, x2, y2)

Attached to this post you can get new XPRINT module.
Just unzip thinbasic_XPrint.dll and place it into \thinBasic\Lib\ directory replacing your current one.
Let me know if it works.

Ciao
Eros

GeorgeN
14-05-2012, 16:06
Wow! Many thanks!

With this kind of support I may start to like programming again!

George N.

ErosOlmi
14-05-2012, 18:45
It is a pleasure.
If you need something just ask and if we can ... We do it.

Ciao
Eros

GeorgeN
14-05-2012, 22:08
Hey -

Just wanted to let you know it works great!

Thanks again -

George N.