Apexofficeprint能否使用中文并给出包含代码示例的解决方法?
创始人
2024-11-10 04:30:26
0

可以使用Apex office print将Salesforce Classic报告以特定格式下载并打印。以下是一些代码示例:

// 创建Apex Class

public class downloadReport {

public void downloadAsPDF()

{

  PageReference report = new PageReference('/00OB0000004ZQdE?csv=1');

  report.getParameters().put('inline', '1');

  String reportContent = report.getContent().toString();

  ApexOfficePrint.Printable printable = new   ApexOfficePrint.Printable();

  printable.attachFile('QuoteReport.pdf');

  printable.setFormat(ApexOfficePrint.FileFormat.PDF);

  printable.setContent(reportContent);

  printable.execute();

}

}

// 创建Apex Page

apex:page

  

        

  

相关内容

热门资讯

wepokeai代打!wopo... 1、wepokeai代打!wopoker真的有挂吗,wopoker辅助软件,微扑克教程(有挂透视);...
wepoke辅助使用方法!we... wepoke辅助使用方法!wepokeapp下载教程,wepoke小技巧,技巧教程(有挂软件)准备好...
德州辅助软件开发定制!德州智能... 德州辅助软件开发定制!德州智能辅助,德州ai辅助代理,安装教程(有挂技巧)1、很好的工具软件,可以解...
德州之星有外挂吗!德州扑克ai... 德州之星有外挂吗!德州扑克ai机器人,德州ai软件是什么样,扑克教程(有挂方法);德州之星有外挂吗软...
微扑克的辅助工具苹果!微扑克a... 1、微扑克的辅助工具苹果!微扑克ai操作,微扑克机制技巧,靠谱教程(有挂透视);详细教程。2、微扑克...
aapoker有胜率保护吗!a... aapoker有胜率保护吗!aa扑克辅助,aapoker线上规律,2025新版技巧(有挂方法),支持...
aapoker辅助器是真的吗!... aapoker辅助器是真的吗!aa扑克发牌机制,德州aa poker有外挂吗,新2025教程(有挂攻...
aapoker透明!德扑ai智... aapoker透明!德扑ai智能机器人代理,德州辅助软件线上,专业教程(竟然真的有挂)准备好在德扑a...
德扑之星作弊事件!德扑ai代打... 1、德扑之星作弊事件!德扑ai代打,德扑之星软件透明有人买,必备教程(有挂神器);详细教程。2、德扑...
wepoke一定有挂!wpk德... wepoke一定有挂!wpk德州ai辅助器,wpk俱乐部有外挂吗,黑科技教程(其实真的有挂);实战中...