首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Flex的FileReference类中没有save()方法

Flex的FileReference类中没有save()方法
EN

Stack Overflow用户
提问于 2015-06-08 17:16:40
回答 3查看 680关注 0票数 0

我正在尝试将DataGrid的内容导出为PDF

代码语言:javascript
运行
复制
var bytes:ByteArray = myPDF.save(Method.LOCAL);
var f:FileReference = new FileReference();
f.save(bytes,"TestAttachment.pdf"); 
/* Call to a possibly undefined method save through a reference with static type flash.net:FileReference. */

我正在使用AlivePDF版本0.1.4.9和flex builder3来构建一个简单的Flex应用程序

EN

Stack Overflow用户

发布于 2015-06-22 13:53:36

将flex SDK更新到3.6A,并将Flex编译器版本更新到10.1.0,感谢@(Yasuyuki Uno)和FileReference.Save

代码语言:javascript
运行
复制
var f:FileReference = new FileReference();
f.save(bytes,"TestAttachment.pdf");
票数 1
EN
查看全部 3 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30705296

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档