Search found 5 matches

by graphicequaliser
Fri Jul 05, 2013 12:35 pm
Forum: XLSReadWriteII 3/4/5
Topic: Insert an image into sheet
Replies: 3
Views: 11809

Re: Insert an image into sheet

This seems to work, where "chwid" is the image width and "chhei" is the image height :- int ii,jj,lpx; TSheet *mjsh=XLSRW1->Sheets->Items[0]; TMSOPicture* msoPict=XLSRW1->MSOPictures->Add(); msoPict->LoadFromFile(imgnam); TDrwPicture* drwPict=mjsh->DrawingObjects->Pictures->Add()...
by graphicequaliser
Fri Jul 05, 2013 9:27 am
Forum: XLSReadWriteII 3/4/5
Topic: Insert an image into sheet
Replies: 3
Views: 11809

Insert an image into sheet

I use the following code to insert an image held in the filename "imgnam" into row position "rw" in my sheet :- TMSOPicture* msoPict=XLSRW1->MSOPictures->Add(); msoPict->Filename=imgnam; TDrwPicture *Pict=XLSRW1->Sheets->Items[0]->DrawingObjects->Pictures->Add(); Pict->PictureId=...
by graphicequaliser
Mon Jul 01, 2013 12:38 pm
Forum: XLSReadWriteII 3/4/5
Topic: Getting XLSReadWriteII4 to work in BCB5
Replies: 1
Views: 8775

Re: Getting XLSReadWriteII4 to work in BCB5

OMG! :P I have found out how to do it! It is a simple ( :lol: ) 12-step procedure :- 1) Install the .bpl file into your component palette. 2) Close All. 3) Create a new VCL app and drop the XLSRWII4 component onto it. Add all the Pascal source code for XLSRWII4 from SrcXLS into this project. Add all...
by graphicequaliser
Mon Jul 01, 2013 11:03 am
Forum: XLSReadWriteII 3/4/5
Topic: Getting XLSReadWriteII4 to work in BCB5
Replies: 1
Views: 8775

Getting XLSReadWriteII4 to work in BCB5

Since there was no option to get the registered version for BCB5, I had to buy the D5 version and try it out. Depsite BCB5 being able to compile and install the XLSSuite4\Package\D5\XLSRWII4_D5.bpl file into the component palette, and the components there looking fine, as soon as I drop one onto a f...
by graphicequaliser
Mon Mar 04, 2013 11:54 am
Forum: XLSReadWriteII 3/4/5
Topic: How to set font styles in C++
Replies: 0
Views: 7630

How to set font styles in C++

I noticed this in the examples :- // Don't know how to write this in C++ ... // XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle = [xfsBold,xfsItalic]; I program in C++ and this is how you do it :- XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle = XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle <<xfsBold <<xfsItalic; HTH...