Search found 8 matches
- Thu Jan 24, 2013 9:53 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: XLSReadWriteII4: Add same picture in multiple sheets
- Replies: 13
- Views: 21289
Re: XLSReadWriteII4: Add same picture in multiple sheets
Yes, the C++ code did exactly what I needed it to do.
- Thu Jan 24, 2013 3:08 am
- Forum: XLSReadWriteII 3/4/5
- Topic: XLSReadWriteII4: Add same picture in multiple sheets
- Replies: 13
- Views: 21289
Re: XLSReadWriteII4: Add same picture in multiple sheets
Here's my work-around (with all error handling and other non-essential lines removed). Development was in C++Builder, but hopefully people can convert to Delphi, if required. TXLSReadWriteII4* xls = new TXLSReadWriteII4(NULL); xls->Filename = fn; xls->Version = xvExcel97; if(!xls->Sheets->Count) xls...
- Sat Sep 10, 2011 6:50 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: XLSReadWriteII4: Add same picture in multiple sheets
- Replies: 13
- Views: 21289
Re: XLSReadWriteII4: Add same picture in multiple sheets
I understand. In my case they are logo files, which are stored in one place only - so having multiple copies of the files doesn't work in this case.
- Thu Sep 08, 2011 7:26 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: XLSReadWriteII4: Add same picture in multiple sheets
- Replies: 13
- Views: 21289
Re: XLSReadWriteII4: Add same picture in multiple sheets
Changing the PictureName didn't work for me (it gave an error that the name was invalid). However, I managed to work around the problem by using LoadFromFile for the TMSOPicture and then setting PictureId of the TDrwPicture, instead of setting the PictureName. To value of PictureId needs to be the s...
- Tue Sep 06, 2011 7:26 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: DefaultRowHeight doesn't appear to work in XLSReadWriteII v4
- Replies: 2
- Views: 3935
Re: DefaultRowHeight doesn't appear to work in XLSReadWriteII v4
Just to clarify, when I refer to the values 12.75 and 15, those are the row heights as shown in Excel - in my code I set the DefaultRowHeight to 300 (ie. 15*20), but Excel still shows the height as 12.75 for the rows which I don't specifically set the height for. I just tried again now with a value ...
- Sat Aug 20, 2011 11:41 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: DefaultRowHeight doesn't appear to work in XLSReadWriteII v4
- Replies: 2
- Views: 3935
DefaultRowHeight doesn't appear to work in XLSReadWriteII v4
Hi, I use XLSReadWriteII v4 to create a workbook, then I create a spreadsheet and I set the DefaultRowHeight for the sheet to 15. However, when I open the workbook in Excel, the default row height is 12.75. I have tried different values for DefaultRowHeight, as well as verifying the value before the...
- Sun Jun 05, 2011 12:17 am
- Forum: XLSReadWriteII 3/4/5
- Topic: FontColor doesn't seem to work
- Replies: 1
- Views: 3137
Re: FontColor doesn't seem to work
Further investigation has revealed that FontColor should be specified as RGB, rather than one of the Excel colours. I then tried "cl->FontColor = XColorToRGB(xcGray50)", but that gave me R=128, G=128, B=0! For now I have worked around this by assigning "cl->FontColor = 0x7f7f7f",...
- Sat Jun 04, 2011 10:04 pm
- Forum: XLSReadWriteII 3/4/5
- Topic: FontColor doesn't seem to work
- Replies: 1
- Views: 3137
FontColor doesn't seem to work
I have used the following (C++) code to assign a value to a cell and format it: xlSht->AsString[0][0] = "Report for " + dtMthStart.FormatString("mmmm yyyy"); TCell* cl = xlSht->Cell[0][0]; cl->FontName = "Arial Black"; cl->FontStyle = TXFontStyles() << xfsBold; cl->Font...