10-09-2008 08:42 AM
Hello,
I have a script in Diadem, script that I can control from a VBA application ( from Excell), and I want to send from Excell some details to the report.
I want in the report, the Local Test Order field to by the LocalTO from the VBA (Excell), the DVM Test Order fiel to be the DVMTO from Excell, and ..... al the fields from the excell to be in the report.
And in the Diadem script the filename of the export .pdf file to be the filename from the Excell.
Attached I put the script from Diadem and the VBA application.
Thank you for your time.
10-09-2008 09:05 AM
Hello Marse!
I can't check your code because the script 'Concatenate Groups.VBS' and some test data is missing!
In general there are two ways to show variable content in a REPORT:
See for both ways the help for details.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
10-10-2008 12:50 AM
Hi,
Thanks for you help, but I want to send (like I said in the previos mail) variable that I declare( write) in Excell (VBA) to Diadem report.
And the filename variable that I define in Excell to be the name of the report.
This time I've attached all the programs.
Thank you again.
10-10-2008 02:42 AM - edited 10-10-2008 02:43 AM
Hello Marse!
Sorry that I was not clear enough and add the hwo-to via OLE
For way 1. you have to add this lines to your Excel VBA code:
loadscript = IDIACommand.TextVarSet("T1","Value of T1")
For way 2. it is:
loadscript = IDIACommand.CmdExecuteSync("GlobalDim('MyGlobalVar'") loadscript = IDIACommand.VariantVarSet("MyGlobalVar","Value of MyGlobalVar")
Inserted before your line
loadscript = IDIACommand.CmdExecuteSync("scriptstart('C:\BForce\LIBR\BForce2.VBS')")
Hope it is clear now! Otherwise feel free to ask
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |