teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

修正

2021/08/18 02:57

投稿

wada3da
wada3da

スコア2

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,13 @@
1
1
  ![イメージ説明](e1c7db10ea85d20e44ec62849add51ca.png)
2
2
 
3
+ 下記のコードに修正をしたらPDFファイルとして保存することができましたが、画面にPDFを表示できないので困っています。
4
+
5
+   GrapeCity.ActiveReports.SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport();
6
+ XmlReader xtr = XmlReader.Create(Application.StartupPath + @"....\SectionReport1.rpx");
3
- SectionReport1がエラーになるのですが、なぜでしょうか?
7
+ sectionReport.LoadLayout(xtr);
8
+ sectionReport.Run();
9
+ GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pdfExport = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
10
+
11
+ pdfExport.Export(sectionReport.Document, Application.StartupPath + "\MyPDF.pdf");
12
+
4
- 初心者中の初心者的な質問で申訳ないすが、ご教授願います
13
+ どうたらPDFを表示ますか?

1

タグ追加

2021/08/18 02:57

投稿

wada3da
wada3da

スコア2

title CHANGED
File without changes
body CHANGED
File without changes