Export to Excel error

Vineeth.RVineeth.R Member Posts: 121
Dear Friends

when i tried to write coding in a report to export to excel i encounter this automation error as attached with this. I am using Version 4.0, the error coming from
table 370
function Createsheet() this line.

XlWrkSht.Range(GetExcelReference(5) + ':' + xlColID + xlRowID).Columns.AutoFit;



In the Report when i call this function

ExcelBuf.CreateBook;
ExcelBuf.CreateSheet('Book 1','Book 2',COMPANYNAME,USERID); //Error comes here
ExcelBuf.GiveUserControl;
ExcelBuf.ChangePageSetup(2);
ERROR('');
Thanks and Regards
Vineeth.R

Comments

  • Vineeth.RVineeth.R Member Posts: 121
    The attachment
    Thanks and Regards
    Vineeth.R
  • SogSog Member Posts: 1,023
    See that in the CU the text constant text016 is A1
    check the values for xlColID and xlRowID and make sure it doesnt fall out of range (ColID has to be a sting containing one or 2 letters and must not pass IV.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
Sign In or Register to comment.