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

  

        

  

相关内容

热门资讯

透视智能ai!拱趴大菠萝挂(透... 透视智能ai!拱趴大菠萝挂(透视)必胜教程(2022已更新)(哔哩哔哩)拱趴大菠萝挂是一种具有地方特...
透视神器!aapoker怎么提... 透视神器!aapoker怎么提高中牌率(透视)插件下载(竟然存在有挂)1、不需要AI权限,帮助你快速...
透视工具!epoker透视底牌... 透视工具!epoker透视底牌(透视)教你教程(2024已更新)(哔哩哔哩)在进入epoker透视底...
透视有挂!aapoker万能辅... 透视有挂!aapoker万能辅助器(透视)透视脚本(好像真的有挂)1、aapoker万能辅助器系统规...
辅助透视!拱趴大菠萝万能挂图解... 辅助透视!拱趴大菠萝万能挂图解(透视)力荐教程(2024已更新)(哔哩哔哩);1、起透看视 拱趴大菠...
透视了解!aa poker透视... 透视了解!aa poker透视软件(透视)透视方法(其实有挂);1、aa poker透视软件ai辅助...
透视ai!poker红龙辅助(... 透视ai!poker红龙辅助(透视)德州教程(2021已更新)(哔哩哔哩);1、进入到poker红龙...
透视智能ai!aapoker怎... 透视智能ai!aapoker怎么设置抽水(透视)透视脚本入口(竟然是真的有挂);1、首先打开aapo...
透视美元局!pokemmo内置... 透视美元局!pokemmo内置修改器(透视)解密教程(2025已更新)(哔哩哔哩);1、完成poke...
透视美元局!竞技联盟辅助插件(... 透视美元局!竞技联盟辅助插件(透视)必备教程(2024已更新)(哔哩哔哩);1、游戏颠覆性的策略玩法...