Jump to content

Sample data to every page in XML report


xmlreport

Recommended Posts

Hello! My knowledge about coding is very limited. I've coded few HTML-pages with CSS years ago, but thats about it. Now I have a problem regarding a XML-report. I have this program, which has Publisher program that makes reports of the data. It used .rpt report files as templates, but after update those template files are now .tpl files. And when I open the file it is an XML code. It generates the report just fine, but the problem is that sample names, which should be on every page (and they were in the old version) are only on the first page. This really isn't very convenient. I've tried editing the code, but nothing helps. So I hope someone could help me.

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE iTevaReportConfiguration [<!ELEMENT iTevaReportConfiguration (General,SectionInstrumentInfo,SectionMethodSequenceInfo,SectionSampleIntro,SectionDataAcquisition,SectionDataProcessing,SectionCalibrationInfo,SectionSampleData,SectionRawCTSResults,SectionCorrectedCSTResults,SectionConcResults,SectionInternalStdResults)><!ELEMENT General (ReportTitle,InternalCrystalReport,CrystalTemplateID,CrystalFilename,MDLConfidenceLevel)><!ELEMENT SectionInstrumentInfo (InstrumentInfoOn,NotesOn)><!ELEMENT SectionMethodSequenceInfo (WholeSectionOn,MethodNameOn,OwnerDateStampsOn,MethodNotesOn,SampleSequenceOn)><!ELEMENT SectionSampleIntro (SampleIntroOn)><!ELEMENT SectionDataAcquisition (WholeSectionOn,IntegrationTimesOn,RepeatsOn,AnalysisModeOn,CalibrationModeOn,WavelengthViewTableOn,SubarrayDetailsOn)><!ELEMENT SectionDataProcessing (CalibStdConcsOn,LineSwitchingOn,IECsUsedOn,InternalStdsOn,CheckTablesOn,AnalysisFlagKeys)><!ELEMENT SectionCalibrationInfo (WholeSectionOn)><!ELEMENT SectionSampleData (SampleNameOn,DateAcquiredOn,SampleTypeOn,CorrectionFactorOn,AutosampleLocations,AnalystNameOn,ValidOn,MethodNameOn)><!ELEMENT SectionRawCTSResults (WholeSectionOn,RepeatAverageOn,StdDevOn,RSDOn,RepeatsOn)><!ELEMENT SectionCorrectedCSTResults (WholeSectionOn,RepeatAverageOn,StdDevOn,RSDOn,RepeatsOn)><!ELEMENT SectionConcResults (WholeSectionOn,RepeatAverageOn,StdDevOn,RSDOn,RepeatsOn,QCStatusOn)><!ELEMENT SectionInternalStdResults (WholeSectionOn,RepeatAverageOn,StdDevOn,RSDOn,RepeatsOn)><!ELEMENT ReportTitle (#PCDATA)><!ELEMENT InternalCrystalReport (#PCDATA)><!ELEMENT CrystalTemplateID (#PCDATA)><!ELEMENT CrystalFilename (#PCDATA)><!ELEMENT MDLConfidenceLevel (#PCDATA)><!ELEMENT InstrumentInfoOn (#PCDATA)><!ELEMENT NotesOn (#PCDATA)><!ELEMENT MethodNameOn (#PCDATA)><!ELEMENT OwnerDateStampsOn (#PCDATA)><!ELEMENT MethodNotesOn (#PCDATA)><!ELEMENT SampleSequenceOn (#PCDATA)><!ELEMENT SampleIntroOn (#PCDATA)><!ELEMENT IntegrationTimesOn (#PCDATA)><!ELEMENT RepeatsOn (#PCDATA)><!ELEMENT AnalysisModeOn (#PCDATA)><!ELEMENT CalibrationModeOn (#PCDATA)><!ELEMENT WavelengthViewTableOn (#PCDATA)><!ELEMENT SubarrayDetailsOn (#PCDATA)><!ELEMENT CalibStdConcsOn (#PCDATA)><!ELEMENT LineSwitchingOn (#PCDATA)><!ELEMENT IECsUsedOn (#PCDATA)><!ELEMENT InternalStdsOn (#PCDATA)><!ELEMENT CheckTablesOn (#PCDATA)><!ELEMENT AnalysisFlagKeys (#PCDATA)><!ELEMENT SampleNameOn (#PCDATA)><!ELEMENT DateAcquiredOn (#PCDATA)><!ELEMENT SampleTypeOn (#PCDATA)><!ELEMENT CorrectionFactorOn (#PCDATA)><!ELEMENT AutosampleLocations (#PCDATA)><!ELEMENT AnalystNameOn (#PCDATA)><!ELEMENT ValidOn (#PCDATA)><!ELEMENT WholeSectionOn (#PCDATA)><!ELEMENT RepeatAverageOn (#PCDATA)><!ELEMENT StdDevOn (#PCDATA)><!ELEMENT RSDOn (#PCDATA)><!ELEMENT QCStatusOn (#PCDATA)>]><iTevaReportConfiguration>  <General>	<ReportTitle>Horizontal_x0020_Table_x0020_Report</ReportTitle>	<InternalCrystalReport>true</InternalCrystalReport>	<CrystalTemplateID>HorizontalTable</CrystalTemplateID>	<CrystalFilename>Horizontal_x0020_Table_x0020_Report.rpt</CrystalFilename>	<MDLConfidenceLevel>98</MDLConfidenceLevel>  </General>  <SectionInstrumentInfo>	<InstrumentInfoOn>false</InstrumentInfoOn>	<NotesOn>false</NotesOn>  </SectionInstrumentInfo>  <SectionMethodSequenceInfo>	<WholeSectionOn>false</WholeSectionOn>	<MethodNameOn>false</MethodNameOn>	<OwnerDateStampsOn>false</OwnerDateStampsOn>	<MethodNotesOn>false</MethodNotesOn>	<SampleSequenceOn>false</SampleSequenceOn>  </SectionMethodSequenceInfo>  <SectionSampleIntro>	<SampleIntroOn>true</SampleIntroOn>  </SectionSampleIntro>  <SectionDataAcquisition>	<WholeSectionOn>false</WholeSectionOn>	<IntegrationTimesOn>false</IntegrationTimesOn>	<RepeatsOn>false</RepeatsOn>	<AnalysisModeOn>false</AnalysisModeOn>	<CalibrationModeOn>false</CalibrationModeOn>	<WavelengthViewTableOn>false</WavelengthViewTableOn>	<SubarrayDetailsOn>false</SubarrayDetailsOn>  </SectionDataAcquisition>  <SectionDataProcessing>	<CalibStdConcsOn>false</CalibStdConcsOn>	<LineSwitchingOn>false</LineSwitchingOn>	<IECsUsedOn>false</IECsUsedOn>	<InternalStdsOn>false</InternalStdsOn>	<CheckTablesOn>false</CheckTablesOn>	<AnalysisFlagKeys>false</AnalysisFlagKeys>  </SectionDataProcessing>  <SectionCalibrationInfo>	<WholeSectionOn>false</WholeSectionOn>  </SectionCalibrationInfo>  <SectionSampleData>	<SampleNameOn>true</SampleNameOn>	<DateAcquiredOn>false</DateAcquiredOn>	<SampleTypeOn>false</SampleTypeOn>	<CorrectionFactorOn>false</CorrectionFactorOn>	<AutosampleLocations>false</AutosampleLocations>	<AnalystNameOn>false</AnalystNameOn>	<ValidOn>false</ValidOn>	<MethodNameOn>false</MethodNameOn>  </SectionSampleData>  <SectionRawCTSResults>	<WholeSectionOn>false</WholeSectionOn>	<RepeatAverageOn>false</RepeatAverageOn>	<StdDevOn>false</StdDevOn>	<RSDOn>false</RSDOn>	<RepeatsOn>false</RepeatsOn>  </SectionRawCTSResults>  <SectionCorrectedCSTResults>	<WholeSectionOn>false</WholeSectionOn>	<RepeatAverageOn>false</RepeatAverageOn>	<StdDevOn>false</StdDevOn>	<RSDOn>false</RSDOn>	<RepeatsOn>false</RepeatsOn>  </SectionCorrectedCSTResults>  <SectionConcResults>	<WholeSectionOn>false</WholeSectionOn>	<RepeatAverageOn>false</RepeatAverageOn>	<StdDevOn>false</StdDevOn>	<RSDOn>false</RSDOn>	<RepeatsOn>false</RepeatsOn>	<QCStatusOn>false</QCStatusOn>  </SectionConcResults>  <SectionInternalStdResults>	<WholeSectionOn>false</WholeSectionOn>	<RepeatAverageOn>false</RepeatAverageOn>	<StdDevOn>false</StdDevOn>	<RSDOn>false</RSDOn>	<RepeatsOn>false</RepeatsOn>  </SectionInternalStdResults></iTevaReportConfiguration>

It generates a report like thispost-139965-0-54901500-1365690589_thumb.jpg Those b1,b2,M1,M2,M10 are the sample names which should be on every page, but when a new page starts (Al167,Al3944) they are not. So how should I edit the code to get them work. I have the old .rpt file too if you need that, but when I open it with Notepad it's just all symbols (I guess you need Visual Studio or some program like that to open it?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...