DIAdem Transfer To Report in VBScript Has Incorrect Scaling

Updated Nov 1, 2023

Reported In

Software

  • DIAdem

Issue Details

  • I am transferring my DIAdem VIEW sheets to my REPORT Panel using the ScriptStart command in Visual Basic Script (VBS). However, the REPORT graphs have different scaling in comparison to the VIEW. How can I fix this?
  • In my VBS, I am calling the script that executes the "Transfer to Report" functionality. When I have applied a zoom to my VIEW charts, the zoom is not carried over the REPORT charts. Why is this happening?

Solution


This issue occurs because DIAdem is not pulling the latest scaling or zoom from the VIEW Panel.

To avoid this:
  1. Activate the VIEW sheet of interest with View.Sheets(x).Activate where x is the sheet index.
  2. Insert a WndShow("VIEW") command before transferring the VIEW sheet to the REPORT Panel.
    • This forces DIAdem to update the scaling to the latest values.
The script should resemble the following:
Call View.Sheets(1).Activate
Call WndShow("VIEW")
Call ScriptStart(ResourceDrv & "VwLayTrans", "VWTransViewRep", False)
Report.ActiveSheet.Name = View.Sheets(1).Name