Hi,
How can I make rpcmanager.exportimage work? My codes have no any reponse !
ToolStripButton exportButton = new ToolStripButton();
exportButton.setTitle("ExportImage");
exportButton.setIcon("toolbar/arrowright.png");
exportButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
String format = "png";
DSRequest requestProperties = new DSRequest();
requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
requestProperties.setExportFilename("test_panel1");
requestProperties.setExportImageFormat(EnumUtil.getEnum(ExportImageFormat.values(), format));
RPCManager.exportImage(panelDrawPane.getSvgString(), requestProperties);
}
});
toolStrip.addMember(exportButton);
Thanks!
Kingdom
How can I make rpcmanager.exportimage work? My codes have no any reponse !
ToolStripButton exportButton = new ToolStripButton();
exportButton.setTitle("ExportImage");
exportButton.setIcon("toolbar/arrowright.png");
exportButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// TODO Auto-generated method stub
String format = "png";
DSRequest requestProperties = new DSRequest();
requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
requestProperties.setExportFilename("test_panel1");
requestProperties.setExportImageFormat(EnumUtil.getEnum(ExportImageFormat.values(), format));
RPCManager.exportImage(panelDrawPane.getSvgString(), requestProperties);
}
});
toolStrip.addMember(exportButton);
Thanks!
Kingdom
Comment