VBScript to get file source

More
10 years 1 month ago #2160 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

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #2162 by Toby
Replied by Toby on topic VBScript to get file source
Hi Andres,

Thanks for reminding the additional space typo :)

I have try the corrected script but still got nothing, you can take a look of the screen shot.
I'm using msgbox function to show the value, but it is showing a null value.





Thanks!

Regards
Toby
Attachments:
Last edit: 10 years 1 month ago by Toby.

Please Log in or Create an account to join the conversation.

More
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
The following user(s) said Thank You: Toby

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #3616 by ivanclaudio
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

Please Log in or Create an account to join the conversation.

Time to create page: 0.310 seconds