DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Report

Hi,
 
I have 'MyLayout.TDV' file
I want to write a script similar to the "Transfer to REPORT" menu feature?
And From that report, I want to use the "PDF EXport"  menu feature.
How do i write the script?
 
Thanks InAdvance...
0 Kudos
Message 1 of 11
(5,241 Views)

Hi

you can simply record your script. Then you do this you will get a script similar to this:

Call ScriptStart(resourcedrv &"VWServices","VWTransViewRep",0)
Call PicPDFExport("c:\test.PDF",0)

Hope this helps.

Winfried

0 Kudos
Message 2 of 11
(5,238 Views)

Thanks for the response...

But it is working half part only...

When we are doing it manually using menu...it is transfering the .TDV exactly to .TDR and displaying the graph.

But when i am including it in the script as you mentioned..It is just showing the graph with no output....and with wrong X and Y axis parameters. ie. It is not setting the Xbegin-Xend and Y begin-end.

Do we need to set them again using the script and how?

0 Kudos
Message 3 of 11
(5,221 Views)

Hi rageswari,

When I try Winner's code on my own data and VIEW layout, I get graphs with curves on them and the scaling correctly adapted in REPORT as it appeared in VIEW.  I'm using DIAdem 10.2.1 (aka DIAdem 10.2 SP1).

I wonder what version of DIAdem you're using,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 11
(5,198 Views)

Hi Brad,

I got the solution to the problem..

What was going wrong here is...

I am setting the sheets of the view layout and saving it to Mylaout.tdv...
and then calling SCRIPTSTART to transfer view to report.

But here I am not showing the View layout.

When I use WndShow("VIEW","SHOW") before calling SCRIPTSTART it is now transferring the view layout to report layout.

Thanks

Rajeswari.

0 Kudos
Message 5 of 11
(5,174 Views)
Is there any way to move the legend of the report to a new sheet, as my legend items are very long....So it is not visible....
 
Is there any way to copy the myreport sheet to a new sheet.
0 Kudos
Message 6 of 11
(5,060 Views)

Hi rageswari,

If the graph in question is on Sheet 1 in REPORT, there is no way to put the legend of that graph on Sheet 2 in REPORT.  However, you can put a copy of that graph on Sheet 2 and hide the graph and show only the legend, and you can hide the legend of the graph on Sheet 1.  I'm not convinced that will result in a good user experience, though.

I didn't understand your second question, "Is there any way to copy the myreport sheet to a new sheet."

Cheers,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 7 of 11
(5,045 Views)

Hi Brad,

Thank you.

You already gave answer to my second question. i.e As I thought that there is noway to move legend, i too thought to make a copy of the first sheet and hide the legend/graph. But how do I do that?

As my legend items are very long i am going in that way, though it is not good way. Can you suggest me any other idea! 

0 Kudos
Message 8 of 11
(5,036 Views)

Hi Rajeswari,

I don't have any other suggestions.  If your legend contents really take up so much space that they need their own sheet to be seen fully, then I think you have no other option but to put them on their own sheet.  This is how I would go about it.  Start with the layout that you have with the graph and the legend on the same sheet, and make sure that the channel references are correct.  Now right-click on that graph and select "Copy".  Right-click on the REPORT sheet tab ("Sheet 1") and select "New", then right-click anywhere on the new sheet and select "Paste".  Now you have the same graph and legend on each sheet.  On the first sheet configure the graph to not show the legend.  On the second sheet, color the graph's axis and curves so that they are invisible ("white" or "no color").  You could alternatively size the graph very small or position it off the page.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 9 of 11
(5,018 Views)
Hi Brad,
 
Thank you,
 
Actually I am looking for the script form of copying and pasting the sheets/Graph. I don't want to do this manually.
0 Kudos
Message 10 of 11
(4,997 Views)