12-02-2011 12:37 AM
Hi, I am getting the reports in Diadem for which i already have a code.
I have sample1.tdr, sample2.tdr which is a base for all reports getting generated and converting the plots to pdf file.
I want to have the same pdf files converted to wmf files.. how can i do that..
-Rash
12-06-2011 02:48 PM
Hi Rash,
Instead of "PicPdfExport", use "PicExport".
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-12-2013 05:56 AM
Hi Brad,
"PicExport" for WMF isworking. But it is inconsistent.
First time when I run the script for a fresh data set, the wmf Plots will get generated for all channels with different plots.
Second time onwards, if i run the same data set, the WMF and PNG Plots are getting ovverrited. I mean channel names are different in each plot but the first plot gets relaced/Overrrited in the rest of the plots.
Why is it so??
I tried in Version 11.1 & Version 2012.
Thanks,
Rsh
09-12-2013 04:28 PM
Hi Rsh,
Please clarify what is being overwritten. Are you seeing the overwritten items in DIAdem REPORT or in the *.wmf file? What exactly is being overwritten-- the data values of each curve, the labels for the curves on the axes or legend, or something else? A couple of screenshots would really help here.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-13-2013 12:11 AM
Hi Brad,
We are seeing overriten item in *.wmf file(the reports and pdf export are working perfect). Attached is the sample which is more clearer.
When I run script for first time i get all wmf, pdf, ppt files properly. But when I run script for second time, all plots(wmf,ppt only) looks like how it is in the attached the file.
Thanks,
rsh
09-13-2013 10:46 AM
Hi RSH,
You say that the channel names are different on different WMF file plots, but the 2 sheets in the Powerpoint file you sent have EXACTLY the same names in the X and Y axes and in the legend. All I see there are two sheets with the same graph on it and a different text at the top describing the problem.
Would you be able to send in the data set and REPORT layout with which we could try to reproduce this issue?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-16-2013 01:48 AM
Hi Brad,
The file name of each wmf file, I have given their respective channel names. When i get a dump of all WMF files after execution of my script, each file names are different with all channel names in my data portal.(See the attached image).
But the plot(Curve) inside it, channel name eveything inside the plot, mean when i open the wmf file only, I can make out all contents are same(Overritten) as first curve.
Sorry I cannot post the data set to the forum..:(
Need help,
Rsh
09-16-2013 11:23 AM
Hi RSH,
Let me summarize what I hear you saying. You are running a VBScript that automatically creates REPORT sheets and sends each one to a different *.WMF file. The VBScript correctly names the *.WMF files different, according to the channel name that you wish to see on each one, but the curve and headings on each graph is from the same channel each time. Right?
Can you send me your VBScript and TDR layout file(s) to my work email?
brad.turpin@ni.com
If not, can you at least describe how you are attempting to have different curves displayed? Are you loading different TDR files that have a static reference to different channels in them, or are you loading the same TDR file each time and programmatically changing the references? In the latter case, could you post the VBScript commands designed to change the channel references?
Brad Turpin
DIAdem Product Support Engineer
National Instruments