Navision classic report exported in excel

Kau_147Kau_147 Member Posts: 84
I have created a report in classic & I exported that report in excel using Automation in Navision 4.0.3 (Indian Version). Now I want to save that report to specific path which I mension in setup.

I added the following code to save as in excel on Report - OnPostReport() :

xlWorkBook.SaveAs(CompInfo."File Path"+'\test.xlsx');

I have checked the report in Navision 2009, its working fine.
But In navision 4.0.3, the system considered the forword slash ('\') as new line.

& its giving me error for special charactors.

Please help me!!!!!! :cry:
Best Regards,
Kavita Mutha

Comments

  • David_SingletonDavid_Singleton Member Posts: 5,479
    Try using STRSUBST.
    David Singleton
  • Kau_147Kau_147 Member Posts: 84
    Thanks for reply.
    This issue is solved now.
    The problem with my filename that includes thespecial charactors \:D/
    Best Regards,
    Kavita Mutha
Sign In or Register to comment.