2013年7月4日木曜日

改ページするときに違うシートじゃなくて同じシート内で改ページ!! [VBReport]

VBReportで改ページするときに違うシートじゃなくて同じシート内で改ページ!!

-----------------------------------------

xlsReport.FileName = @".\テンプレート.xls";
xlsReport.Report.Start();
xlsReport.Report.File();
xlsReport.Page.Start("[シート名]", "1");
xlsReport.Page.Repeat(1);

//改ページ
xlsReport.Page.Next(true);
xlsReport.Page.Repeat(1);

xlsReport.Page.Next(true);
xlsReport.Page.End();
xlsReport.Report.End();
-----------------------------------------

最初にRepeat入れないとおかしなことに。

0 件のコメント:

コメントを投稿