首页 > 慧问 > 频道

xtrareport报表,元件没有ableprint属性吗?

发表于2019-05-10 回复:0 查看:2448  |  
xtrareport报表,元件没有ableprint属性吗。 像Stimulsoft Reports和FastReport报表都有这功能?
1个回答
  • 1970-01-01 08:00
    请参如下解决方法: 我这边能正确运行,不能重现你的问题。正确运行说明如下: 打开网络文档: axEDOffice1.Open("http://url/upload/1111.vsd", "Visio.Application"); 打开完成操作后保存 上传
       if (axEDOffice1.IsOpened())
                {
                    this.axEDOffice1.SetAppFocus();
                    this.axEDOffice1.HttpInit();
                    var filename = axEDOffice1.GetDocumentName();
                    axEDOffice1.HttpAddPostOpenedFile(filename, "Visio.Application");
    
    
                    axEDOffice1.SetValue("HoldFocus", "true");
                    axEDOffice1.HttpPost(@"url");
                    if (axEDOffice1.GetErrorCode() == 0 || axEDOffice1.GetErrorCode() == 200)
                    {
                        //完成操作
                    }
                }
    
    在web服务端接收
      string path = Server.MapPath("upload");
            string newFile = path + "\\" + "name.vsd";
    
            HttpFileCollection files = Request.Files;
            Request.Files[0].SaveAs(newFile);
            Response.Write("Upload Successfully.");
            Response.End(); 
        
    客户端完成操作后调用 axEDOffice1.CloseDoc(); 关闭一打开文档; 服务端接收文件名和客户端打开文件名一样;
    1
    回复 举报
回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP