Search found 13 matches

by Joe Griffin
Mon Feb 02, 2015 4:33 pm
Forum: XLSReadWriteII 3/4/5
Topic: AutoHeightRows taking 1 hour
Replies: 2
Views: 7980

Re: AutoHeightRows taking 1 hour

Is this for V4 (rather than V5). If so, I doubt that we will ever see a fix for it. In which case, any chance of a copy of the modified routine (I'm still using V4 under D7).

My e-mail is gerbilsoft <at> btinternet <dot> com.
by Joe Griffin
Wed Jul 17, 2013 9:28 am
Forum: XLSReadWriteII 3/4/5
Topic: Sheet[0].InsertRows not updating formulas above
Replies: 4
Views: 13514

Re: Sheet[0].InsertRows not updating formulas above

is there anyway to do this easily - I was hoping for some function that's not obvious as it does recalculate for the functions below the row insert Does version 5 have an option to do this if version 4 does not I haven't got a clue about version 5 (but I doubt if it's fixed). I have, however, made ...
by Joe Griffin
Tue Jul 16, 2013 9:14 am
Forum: XLSReadWriteII 3/4/5
Topic: Sheet[0].InsertRows not updating formulas above
Replies: 4
Views: 13514

Re: Sheet[0].InsertRows not updating formulas above

Im using the TXLSReadWriteII4 version 4.00.60 I have a total band at the top of the excel sheet e.g. Field A1 =Sum(F1:X1) I also have the same formula at Field Y1 e.g. =Sum(F1:X1) if I insert a new row at J1 the Formula range for Field A1 is not being updated where the Y1 Formula range and position...
by Joe Griffin
Wed Jan 02, 2013 4:41 pm
Forum: XLSReadWriteII 3/4/5
Topic: Read a cell
Replies: 2
Views: 3903

Re: Read a cell

EdwinGrimshaw wrote:d :Double;
....
d := XLS.Sheets[Sheet].Cell[x, y];
Ed
Try

d := XLS.Sheets[Sheet].AsFloat[x, y];
or .AsString[x,y];
.. .AsInteger[x,y];
by Joe Griffin
Mon Oct 08, 2012 3:55 pm
Forum: XLSReadWriteII 3/4/5
Topic: Freeze panes
Replies: 6
Views: 5977

Re: Freeze panes

I think what you want is (something like) ...

Code: Select all

  // Fix the top rows for scrolling
  CurrentSheet.Pane.PaneType := ptFrozen;
  CurrentSheet.Pane.SplitColX := 1;
  CurrentSheet.Pane.SplitRowY := 4;
  CurrentSheet.Pane.LeftCol := 1;
  CurrentSheet.Pane.TopRow := 4;
Hope that helps
by Joe Griffin
Tue Sep 04, 2012 8:38 am
Forum: XLSReadWriteII 3/4/5
Topic: *BEGINNER* Need a simple example...
Replies: 1
Views: 2513

Re: *BEGINNER* Need a simple example...

I have a routine I've used for several years It's got a couple of non-general bits in it ... 1) I use a Raize SaveDialog to get specify where the file will be saved. (This can easily be replaced with a standard SaveDialog.) 2) I use my own MessageDialog (based on something from Delphi Informant in t...
by Joe Griffin
Tue Oct 25, 2011 1:55 pm
Forum: XLSReadWriteII 3/4/5
Topic: Currency format
Replies: 1
Views: 5101

Re: Currency format

The way I usually sort this sort of thing out is to go into Excel and record a macro doing what I want, then translate that into xlsReadWrite. For example, I just told Excel to use currency format on a cell and accepted the defaults. The resulting macro was: Selection.NumberFormat = "$#,##0.00&...
by Joe Griffin
Thu Jul 15, 2010 3:13 pm
Forum: XLSReadWriteII 3/4/5
Topic: Can't run 2 apps built using XLS at the same time
Replies: 5
Views: 4385

Re: Can't run 2 apps built using XLS at the same time

Looks like it *has* been fixed. The code to get he filename is now ...

function XLSGetTempFile: WideString;
begin
Result := TempFilePrefix + IntToStr(GetTickCount) + '.tmp';
end;

So that should give a different name each time it's called.
by Joe Griffin
Thu Jul 12, 2007 12:12 pm
Forum: XLSReadWriteII 3/4/5
Topic: Setting a column's charwidth isn't accurate
Replies: 2
Views: 2796

Column widths

I had this problem and found it better to use PixelWidth, so I wrote the following function: function xlsPixelWidth(CharWidth: Double): Integer; begin // Returns an adjusted width for a work-around in xlsReadWrite Result := Trunc(7 * CharWidth) + 5; end; Then I simply use (for example) Columns[0].Pi...
by Joe Griffin
Tue Jun 19, 2007 7:17 am
Forum: XLSReadWriteII 3/4/5
Topic: Autofilter on sheets with space in name
Replies: 5
Views: 3675

Lars,

I E-mailed you last wek but haven't had a reply. Did you get the message?

Would you please send the update to me at

JoeGriffin <at> cix <dot> co <dot> uk

Thanks,
by Joe Griffin
Tue Jun 12, 2007 8:09 am
Forum: XLSReadWriteII 3/4/5
Topic: Autofilter on sheets with space in name
Replies: 5
Views: 3675

You must put quotes around names with spaces But how can I do that? I create the autofilter by calling ... xlsReadWriteII3.Sheet[0].AutoFilters.Add(0, 0, TotalCols - 1, RowCount - 1); At no point do I use the sheet name; that's provided by your code. Is there any chance you could release the .dpk f...
by Joe Griffin
Tue Jun 05, 2007 7:42 am
Forum: XLSReadWriteII 3/4/5
Topic: Autofilter on sheets with space in name
Replies: 5
Views: 3675

Autofilter on sheets with space in name

I've just hit a problem with Autofilter.. I have a sheet with a space in the sheet name "Kheops Orders". When I try to create an autofilter, I receive an error message : Error in formula Kheops Orders!$A$1:$K$2301 Unknown name KHEOPS. I have worked around it by using an underscore in the s...
by Joe Griffin
Wed Feb 28, 2007 8:18 am
Forum: XLSReadWriteII 3/4/5
Topic: Version No in 3.01
Replies: 0
Views: 2023

Version No in 3.01

Lars, Having updated to V 3.01, I spotted that the components still have a ComponentVersion of 3.00.7. I assume that this is a slip-up as the source does say 3.01. (D5, 6 & 7) Also, would it be possible for you to include the .dpk file with the source; it's the one item which is missing. Best re...