码迷,mamicode.com
首页 > 其他好文 > 详细

AX 2012 MophX Report Export To File

时间:2016-03-02 12:51:43      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

    args                args;
    ReportRun           rr;
    Report              rb;
    PrintJobSettings    pjs;
    ;
    args= new Args("Report");
    args.record(common));
    args.parmEnum(PrintCopyOriginal::OriginalPrint);


    rr = new ReportRun(Args);
    rb  = rr.report();
    rr.suppressReportIsEmptyMessage(true);  // no more "Report is empty..." stuff
    pjs = rr.printJobSettings();
    pjs.virtualPageHeight(0);
    pjs.fitToPage(true);


    rb.interactive(false);
    rr.query().interactive(false);
    pjs.setTarget(PrintMedium::File);
    pjs.viewerType(ReportOutputUserType::HTML);
    rr.init();
    pjs.setTarget(PrintMedium::File);
    pjs.viewerType(ReportOutputUserType::HTML);
    pjs.format(printFormat::HTML);

    pjs.fileName(@"fileName");
    rr.run();

  

AX 2012 MophX Report Export To File

标签:

原文地址:http://www.cnblogs.com/Jinnchu/p/5234339.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!