Error Export EXCEL

HanneyHanney Member Posts: 41
Hi there,
I got problem when export record into excel file

I use this function:

EnterCell(RowNo:Integer;ColumnNo:Integer;CellValue:Text[250];Bold:Boolean; Italic:Boolean;UnderLine:Boolean)
TempExcelBuffer.INIT;
TempExcelBuffer.VALIDATE("Row No.", RowNo);
TempExcelBuffer.VALIDATE("Column No.",ColumnNo);
TempExcelBuffer."Cell Value as Text" := CellValue;
TempExcelBuffer.Formula := '';
TempExcelBuffer.Bold := Bold;
TempExcelBuffer.Italic := Italic;
TempExcelBuffer.Underline := UnderLine;
TempExcelBuffer.INSERT;

After that I try
EnterCell(RowNo, 1,'Date:'.TRUE, FALSE, FALSE);

and I got error like this:
The Excel Buffer already exists.
Identification fields and value:
Row No.='1',Column No. ='1'

did i missing anything?
Thank you..

Comments

  • idiotidiot Member Posts: 651
    Did you increment your RowNo or ColumnNo?
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
  • HanneyHanney Member Posts: 41
    Thanks for quick reply..
    Yes.. I wrote RowNo := RowNo +1;

    i dont get this error if i want to see all record but when I select filter No at item list, this error came out..
  • kapamaroukapamarou Member Posts: 1,152
    The PK is made up of Both RowNo and ColumnNo...

    EnterCell(RowNo, 1,'Date:'.TRUE, FALSE, FALSE) uses 1 as a column no... Is this the problem?
  • alex-m5alex-m5 Member Posts: 1
    U have to set a property TEMPORARY of the variable TempExcelBuffer in TRUE.
  • mootsoomootsoo Member Posts: 70
    hello
    can anyone tell me what is the meaning of increment?
    bye my work, bye navision
  • HanneyHanney Member Posts: 41
    Hello..

    I solve this error already.This is because I repeat this code twice like this:

    EnterCell(RowNo, 1,'Date:',TRUE, FALSE, FALSE);

    EnterCell(RowNo, 1,"Date",TRUE, FALSE, FALSE);

    :oops: ..silly mistake
    Thanks everyone..
Sign In or Register to comment.