SAVEASHTML Parameter

teckpohteckpoh Member Posts: 271
Hi All,
When i define the saveashtml parameter i get an error message said tat i "can't convert text := integer", below is my code:

myReport.SAVEASHTML(50037,'C:\test.html',FALSE,sheader);
myReport is declared as a variable with datatype = report.

But if i redefine the statement by substitute myReport = REPORT then i hv no compilation error. LIke the code below:
Report.SAVEASHTML(50037,'C:\test.html',FALSE,sheader);

But i can't use Report coz it's doesn't meet my criteria...HELP.....~

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Is your question solved or not? There is a "SOLVED" in the Topic title, but in your message it's not clear.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • kinekine Member Posts: 12,562
    Look at this line:
    myReport.SAVEASHTML(50037,'C:\test.html',FALSE,sheader);
    
    Why there is the parameter 50037 if the myReport itself identify which report will be started? Look into Code menu - there is no Report ID parameter when you are calling this function for Report variable.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.