Hello,
I want to access the page.info structure I have stored within a worksheet, but it doesn't work!
This is what I did:
writing page.info during creating workbook:
void XXwriteGlobalHeader1( _STRUCT_EV_DATA* structEVData, int structPos, Page actualProjPg)
{
// Header Informationen initialisieren ...
actualProjPg.Info.Add("HEADER");
using Info_Header = actualProjPg.Info.HEADER;
Info_Header.AddSection("GLOBAL"); // globale Angaben
using IH_Global = Info_Header.GLOBAL;
IH_Global.GHVer$ = SVDO_GLOBAL_HEADER_TYPE_1;
IH_Global.WKSName$ = actualProjPg.GetName();
Info_Header.AddSection("VA"); // Versuchs-Auftrag
using IH_VA = Info_Header.VA;
IH_VA.TestBench$ = structEVData->testbench;
IH_VA.MeteringUnit$ = structEVData->meteringunit;
IH_VA.Datum$ = structEVData->date;
IH_VA.InjNr$ = structEVData->strInj;
// SubSection "WorkingPoint"
Info_Header.AddSection("WORKINGPOINT");
using IH_WorkingPoint = Info_Header.WorkingPoint;
IH_WorkingPoint.BPName$ = structEVData->strMP[structPos];
IH_WorkingPoint.TXT_EINSPRITZVERLAUF$ = structEVData->strEvTestFile[structPos];
IH_WorkingPoint.FUP = structEVData->vPmain[structPos];
IH_WorkingPoint.TiMain = structEVData->vTimain[structPos];
IH_WorkingPoint.QMain = structEVData->vQmain[structPos];
IH_WorkingPoint.Energie = structEVData->vEnergie[structPos];
}
While processing some calculations I need some values I've written to the page.info structure. now I want to read them out.
e.g.:
double qMain;
string strTestBench;
qMain = wks.Info.HEADER.WORKINGPOINT.QMain;
strTestBench = wks.Info.HEADER.VA.TestBench$;
this doesn'work!!
What is going wrong here?
Thanks
Hajo
-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg
SVDO_Origin1