- Thank you received: 0
VBScript to get file source
10 years 1 month ago #2160
by Toby
VBScript to get file source was created by Toby
Dear Sir,
I’m trying to build up a VBscript that will send out an email with issued doc image attached if there are errors during process, everything is working fine but getting stuck on attachment.
I notice there is a page field “ImageFile” which store the full path of image, but still figuring how to get the value in my script.
I have tried different function below but all fail:
Batch.GetSystemField(0,"ImageFile")
Batch.GetUserField(0, "ImageFile")
Doc.get_page_field_value(1,"ImageFile ")
Doc.get_field_value("ImageFile")
I do notice another page field `“SrcFile”, but the destination file is actually not really exist.
May I know is it possible to get the doc image path by VBscript?
Thanks!
regards
Toby
I’m trying to build up a VBscript that will send out an email with issued doc image attached if there are errors during process, everything is working fine but getting stuck on attachment.
I notice there is a page field “ImageFile” which store the full path of image, but still figuring how to get the value in my script.
I have tried different function below but all fail:
Batch.GetSystemField(0,"ImageFile")
Batch.GetUserField(0, "ImageFile")
Doc.get_page_field_value(1,"ImageFile ")
Doc.get_field_value("ImageFile")
I do notice another page field `“SrcFile”, but the destination file is actually not really exist.
May I know is it possible to get the doc image path by VBscript?
Thanks!
regards
Toby
Please Log in or Create an account to join the conversation.
10 years 1 month ago #2161
by Andres
Replied by Andres on topic VBScript to get file source
Hi Toby, Doc.get_page_field_value(pagenumber,"ImageFile") should work, maybe it doesn't work because of the additional space you are putting in the field name "ImageFile "
Regards
Andrés
Regards
Andrés
Please Log in or Create an account to join the conversation.
10 years 1 month ago - 10 years 1 month ago #2162
by Toby
Replied by Toby on topic VBScript to get file source
Last edit: 10 years 1 month ago by Toby.
Please Log in or Create an account to join the conversation.
10 years 1 month ago #2163
by Andres
Replied by Andres on topic VBScript to get file source
Sorry Toby, it doesn't work because "ImageFile" is not a page field, it is generated dynamically. We have already changed it in new version to return the correct value when you ask for this field. I'll send you an email with a preelease version including this patch.
Regards
Andrés
Regards
Andrés
The following user(s) said Thank You: Toby
Please Log in or Create an account to join the conversation.
10 years 1 month ago #2164
by Toby
Replied by Toby on topic VBScript to get file source
Thanks for the update Andres 
Regards
Toby
Regards
Toby
Please Log in or Create an account to join the conversation.
- ivanclaudio
- Offline
- Fresh Boarder
-
Less
More
- Thank you received: 0
4 years 1 month ago #3616
by ivanclaudio
Replied by ivanclaudio on topic VBScript to get file source
Hello everyone,
I'm trying to do the same thing here... If you do find how to do it, would you mind posting the solution here ?
Thank you very much
Claudio
I'm trying to do the same thing here... If you do find how to do it, would you mind posting the solution here ?
Thank you very much
Claudio
Please Log in or Create an account to join the conversation.
Time to create page: 0.310 seconds