EXCEL FILE CREATION AT RUN TIME FACING ISSUES

I am creating a file at run time with current data time .

But I am facing this issue anyone help pls.

Before this activity try to use the kill process with excel as process name and after that give a delay of 2 to 3 sec.

1 Like

If kill process is not solve the issue

Then file naming convention may be the issue

You have used / in tha date time. So instead that use _ or -

1 Like

Hi @BHUVAN

Another problem is you are using invalid characters in a filepath

Take a look at the below.

Recommned using a semi-colon “;” instead.
image

Try this format instead:
dd.MM.yyyy hh;mm;ss

Cheers

Steve

1 Like

@BHUVAN

Please use like this

Path.Combine("C:\Users\Downloads","Excel" + Now.ToString("ddMMyyyyhhmmss") + ".xlsx")

cheers

Thank you @Anil_G now it’s working fine✨

1 Like

Thank you for @Steven_McKeering

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.