hexagon logo

VBScript for reports

Hello everyone,

I got a problem.. Slight smile When the measurement ends I want to save report to specific location, depending on where the part was made (we have same part, but we make it on 2 machines)..
I am using PRINT command, but it sometimes saves blank .rtf report for no reason. so I thought, that maybe using script would be better and more secure, but my scripting knowledge is really limited at the moment, since I just started to do scripting.

I tried to get it working with some scripts, but no luck.

Does anyone have any syntax or code example that I could check and make it work ?
Basically, when measurement ends, msgbox opens and you have to choose(checkbox/list/buttons) the destination where it should save report, which has to be .rtf because we use them in some other programs for statistic.

Thank you for help, D.
Parents
  • Thank you for your reply!

    I will check the Code Samples forum, thanks.

    Yes, we know it can be done like that, we already use this method. but our senior programer think that it would be safer and better(less errors and stuff) if it was made with script. Is he wrong? would it make any difference if we do it with PC-DMIS commands or with script?
Reply
  • Thank you for your reply!

    I will check the Code Samples forum, thanks.

    Yes, we know it can be done like that, we already use this method. but our senior programer think that it would be safer and better(less errors and stuff) if it was made with script. Is he wrong? would it make any difference if we do it with PC-DMIS commands or with script?
Children
No Data