Kytyzow
1
Hello, everybody,
when saving a screenshot I get an error message.
“Save Image: Save image failed. Check if the file name is a valid path”
If I choose a static path, for example
“H:\Data\Screenshot.png”
…everything goes through correctly.
For a dynamic path, for example
“H:\Data\Screenshot” & now.ToString(“dd.MM.yyyy_HH:mm”) & “.png”
an error message is issued. Where is my mistake?
“H:\Data\Screenshot\” + now.ToString(“dd.MM.yyyy_HH:mm”) + “.png”
1 Like
Kytyzow
3
Unfortunately, that doesn’t work either.
I’ve already tried triple “”", it doesn’t work either,.
“H:\Data\Screenshot\” + now.ToString(“dd.MM.yyyy_HH:mm”) + “.png”
try this @Kytyzow you were missing slash after Screenshot
Kytyzow
5
Unfortunately also negative.
“H:\Data\Screenshot\” + Date.Now.ToString(“MM-dd-yyyy HH\hmm\minss\s”) + “.png”
try this! @Kytyzow
2 Likes
Kytyzow
7
The mistake was in the part… HH:mm…
If I leave it out, everything works, or if I input your part.
Thanks!
“D:\Pdf"+ now.ToString(“dd.MM.yyyy HH.mm”) +”.png"
you can do your method only!
slight format mistake,
Cheers
@Kytyzow
1 Like
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.