File Name

File Name - File name without Path name - Сообщения

#1 Опубликовано: 18.11.2022 06:11:05
Friso Oonk

Friso Oonk

0 сообщений из 2 понравились пользователям.

Группа: User

Hello All,

i am a new user of Smath.

When we use the field "file name" it will display the filename with the complete path.

Is it possible to display only the file name with the Extension

Friso
#2 Опубликовано: 22.11.2022 20:31:25
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: User

Greetings!

This is a great question! As such, I took the past few days researching it and the answer I have to your question is: "kind·a"

As you said, inserting a FIELD will result in the full filepath and I have not been able to 'format' this field to report just the filename.

However, Page Setup handles these fields differently! As such, referencing &[FILENAME] as an entry into the Header/Footer will print the filename without the filepath.
Please note, that the Page Setup Header/Footer inputs will only populate if the Header/Footer regions of your Worksheet are left blank.

SMath_filenameWithoutFilePath.jpg


Hope this of help!

- Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#3 Опубликовано: 23.11.2022 06:41:53
Friso Oonk

Friso Oonk

0 сообщений из 2 понравились пользователям.

Группа: User

Hello Kenny,

Thanks for your solution and we are going to use this in the future.

If it good by as a format in the insert field, we would prefer this.

Friso
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений