WinForms윈폼 XML 파일 갱신되지 않은 출력...
페이지 정보
작성자 쌍둥이아빠 작성일 2023-09-11 01:47 조회 206회 댓글 1건본문
관련링크
1. "xml_file" XML 파일에 출력 데이터를 넣고 출력을 하였습니다.
그런데 갱신된 데이터가 출력되지 않고, 이전 데이터로 출력이 됩니다.
2. ~~\bin\Debug\xml 폴더에 XML 파일을 생성하여 출력 테스트를 하였습니다.
실제 프로그램을 배포후, 출력을 하는데 개발할때의 xml 파일 폴더를 찾으며 오류가 발생합니다.
감사합니다...
* 출력물 생성
string rpx_file = Application.StartupPath + @"\Report\rptReport.rpx";
string xml_file = Application.StartupPath + @"\xml\rptReport.xml";
* 출력 Form
System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(@rpx_file);
GrapeCity.ActiveReports.Data.XMLDataSource xmlds = new GrapeCity.ActiveReports.Data.XMLDataSource();
xmlds.FileURL = @xml_file;
xmlds.RecordsetPattern = "//Data";
xmlds.NodeList = (System.Xml.XmlNodeList)xmlds.Field("Data", true);
GrapeCity.ActiveReports.SectionReport rpt = new GrapeCity.ActiveReports.SectionReport();
rpt.DataSource = xmlds;
rpt.LoadLayout(xtr);
xtr.Close();
viewer1.LoadDocument(rpt);
댓글목록
삭제된 댓글
쌍둥이아빠 작성일삭제된 댓글 입니다.