Var Name DataType Subtype Length
No RowNo Integer
No ColumnNo Integer
No CellValue Text 250
No MyBold Boolean
No MyUnderLine Boolean
No MyNumberFormat Text 30
No MyMergeCells Boolean
No MyStartMergeCell Text 30
No MyEndMergeCell Text 30
No MyAlignment Option
This function creates the merge cell entry in the excel buffer
EnterMergeCell(RowNo : Integer;ColumnNo : Integer;CellValue : Text[250];MyBold : Boolean;MyUnderLine : Boolean;etc.)
INIT;
VALIDATE("Row No.",RowNo);
VALIDATE("Column No.",ColumnNo);
"Cell Value as Text" := CellValue;
Formula := '';
Bold := MyBold;
Underline := MyUnderLine;
NumberFormat := MyNumberFormat;
"Merge Cells" := MyMergeCells;
"Start Merge At Cell" := MyStartMergeCell;
"End Merge at Cell" := MyEndMergeCell;
Alignment := MyAlignment;
INSERT;
I also created a function for EnterCell with the same pararmeters but not the merge values
In the createsheet function I added in the section
IF FIND('-') THEN BEGIN
REPEAT
...
IF Underline THEN
XlWrkSht.Range(xlColID + xlRowID).Borders.Item(XlEdgeBottom).LineStyle := XlContinuous;
right after the above I added this code
IF "Merge Cells" THEN
XlWrkSht.Range("Start Merge At Cell"+':'+"End Merge at Cell").Merge;
In the report I had to figure out how many cells I needed to merge to accomodate my text length.
Comments
Var Name DataType Subtype Length
No RowNo Integer
No ColumnNo Integer
No CellValue Text 250
No MyBold Boolean
No MyUnderLine Boolean
No MyNumberFormat Text 30
No MyMergeCells Boolean
No MyStartMergeCell Text 30
No MyEndMergeCell Text 30
No MyAlignment Option
This function creates the merge cell entry in the excel buffer
EnterMergeCell(RowNo : Integer;ColumnNo : Integer;CellValue : Text[250];MyBold : Boolean;MyUnderLine : Boolean;etc.)
I also created a function for EnterCell with the same pararmeters but not the merge values
In the createsheet function I added in the section
IF FIND('-') THEN BEGIN
REPEAT
...
IF Underline THEN
XlWrkSht.Range(xlColID + xlRowID).Borders.Item(XlEdgeBottom).LineStyle := XlContinuous;
right after the above I added this code
In the report I had to figure out how many cells I needed to merge to accomodate my text length.
for example
Steve
i'm using nav 5 sp 1, and i don't have that column
are you sure about this code?
do we add it in Table Excel Buffer or report we want to export to excel?
because I have error message here
excell buffer doesn't have "merge cells"