Hi guys,
Can someone tell me what I am missing in my creation of an Excel file?

PathForBookingDocuments = "C:\Users\kbb\Desktop\Test"+ Now.ToString(“dd-MM-yyyy HH.mm”)
It should create a file in the location called this exact time like: 15-10-2019 13.30
ImPratham45
(Prathamesh Patil)
2
write
“C:\Users\kbb\Desktop\Test”+ Now.ToString(“dd-MM-yyyy HH.mm”)+“.xlsx”
and make sure to check Create New

1 Like
Hi @ImPratham45
I have now adjusted accordingly to your suggestions.
I get the folowing Output:
Excel Application Scope: Exception from HRESULT: 0x800A03EC
(I do not have an Excel sheet open)
ImPratham45
(Prathamesh Patil)
4
will you pls send me your xaml
path is the problem buddy
mention like this
“C:\Users\kbb\Desktop\Test”+ Now.ToString(“dd_MM_yyyy_HH_mm”)+“.xlsx”
Cheers @Karsten_Bertelsen
ImPratham45
(Prathamesh Patil)
6
I can see that the problem only occurs when my path is:
"C:\Users\kbb\Desktop\Test"+ NU+ “.xlsx”
NU = Date.Now.ToString(“dd-MM-yyyy HH.mm”)
How can i make it work with a variable that is determined before the Excel Application Scope like mentioned above?
It works when i replace the path with "C:\Users\kbb\Desktop\Test"+ “15-10-2019 14.00”+ “.xlsx”
@ImPratham45 Thanks for the xaml
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.