Visual Basic/VB >> Printing a picture from a db field

by sergio » Tue, 16 Sep 2003 11:39:45 GMT

Hi all,

I need to send a picture to the printer from an image field in SQL2k.

I know I can either user getchunk or ado streams to get the field,
save it to disk and then use the loadpicture function and the
Printer.PaintPicture functions to send the picture to the printer.

However, is there a way in VB6 to skip the saving to file step and
LoadPicture from memory somehow?.

Thanks for your help in advance.


Sergio Otoya
Winapp


Visual Basic/VB >> Printing a picture from a db field

by sergio » Fri, 03 Oct 2003 11:17:02 GMT


Does anyone know this?. Any help would still be appreciated.

Sergio.






Similar Threads

1. CR92 and load picture from path of a db field

I want to insert a picture in a report (v9.2). The report
should load the picture from a path which is available
from a db field. How can I do this? Is this possible in
the header, footer and details section?

Marc


2. Print preview and print for picture control - Visual Basic/VB

3. Print field will not print to printer

Greetings,

I am trying to send control codes to my printer in a Word 
document. Placing the Print field code in the header as it 
instructs, I get an error that says "It will not be 
possible to send PRINT field data to the printer with the 
currently installed printer driver..."

Just exactly what printer driver needs to be installed? I 
send control codes in VB and other languages, but Word97
(SR-2) wants a different driver. I'm using a LJ-4050 
printer and a PCL6e driver.

Here is an example of a code that causes this error.

{ PRINT 27"&l1O" }

A simple landscape control code.  Any suggestions?


Thanks
M

4. Need some code for adding picture in DB - VB.Net

5. saving picture in DB

hi, how to save an imge in Database, can any body help me for this...
thanx

6. Problem with string concatenation - NULL fields in one field cause all to not print - VB Crystal Report

7. Input Picture into Access DB

Hi guys,

I want to insert picture into Access DB. 
I use INSERT INTO statement, but it doesn't work.

Please Help

Regards
Verdi

8. Report with pictures stored in a db?