如何在 Xcelsius 上自定义打印
Xcelsius带有一个打印按钮,但它的作用是打印仪表板的屏幕截图,我需要做的是对单个表格或图表进行自定义打印,而不是 整个仪表板,有办法做到这一点吗?
Xcelsius comes with a print button, but what it does is to print a screenshot of the dashboard, what I need to do, is to do a custom print of a single table or chart, and not
the entire dashboard, is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,产品附带的打印按钮不是很通用。除了在 Flex 中编写自己的打印组件之外,您可能还需要考虑一些技巧...
使用动态可见性放置背景,在打印之前遮盖仪表板的其余部分。例如:制作一个假的“打印预览”按钮,将所有内容设置为您希望在页面上打印的方式,然后让用户单击真正的打印按钮。
使用外部接口连接将 Xcelsius 图表隔离到其自己的 SWF 容器中,主应用程序通过 JS 接口向该容器提供数据。
如果所有其他方法都失败,您始终可以执行打印屏幕捕获并将图片裁剪为所需的视图。
Unfortunately the print button included with the product is not very versatile. Outside of writing your own print component in flex here are some tricks you may want to consider...
Use dynamic visibility to put a background that obscures the rest of the dashboard prior to printing. ex: make a fake Print Preview button that sets everything up how you want it printed on the page then have the user click the real print button.
Use an external interface connection to isolate the Xcelsius chart into its own SWF container that is fed its data by the main application through a JS interface.
And if all else fails you could always perform a print screen capture and crop the picture to the desired view.