Hi Imtiyaz
I believe here is the solution for you problem.
1.Create a a Column in your table that have a data type of (BLOB/OLE OBJECT/Binary/TextLargeObj
After the table has been created specify a SQL or quick select and select a presentation style for your new data window object.
In you select list specify the key columns for the table, but don’t select the BLOB column as a part of data source.
To add the BLOB column to your datawindow object click the “OLE Database Blob” from Insert  Controls. Click the datawindow where you want to place the blob object. This opens the database binary/text large object dialog box.
You can change the Client Name to what ever you want.
Scroll through the list of tables containing the Blob Column and click the table name.
The Large Binary/Text Columns List box displays all the columns from the selected table, now select the Blob column.
In the key clause type the id column for the table i.e id or emp_id.
You can leave the file template blank.
Now select the ole class by which you want to view the File
You can type a client name or use a computed text to give a name in client name expression.
. when your are running the window (I mean to say retrieved the data) you can double click on the blob column this bring the object which is associated with the blob object you can select a file and close it .
this works fine in Powerbuilder 7 and it should work fine in 8 also if you get any error message just let me know I can provide a working example for this blob thing
thanks
Gajender
Main Topics
Browse All Topics





by: Vikas_DixitPosted on 2003-11-09 at 12:03:30ID: 9710882
Hi imtiaz,
u can create the OLE presentation stype datawindow to achieve the same. On the Inser Control screen ( while creating new datawindow, you will need to give the name of the OCX, that you want to display the tiff file with.
Regards,
Vikas