![]() ![]() We also allow you to resize merged PDF file content to mirror report page size (to help correct page dimension variances). This simply means that you can easily display report headers/footers, pages numbers, or logos atop PDF content. In our most recent update (v21.2), we extended the capabilities of the XRPdfContent control and now allow you to print report elements over merged PDF content. If you have yet to use the XRPdfContent control, please refer to the following blog post for more information: Reporting - Merge PDF Documents into Your Report (v20.1). Return View(ViewBag.With the introduction of the XRPdfContent control in our v20.1 release cycle, we gave users the ability to include/merge external PDF file content within a report. Report.LoadLayout(reportFilePath) //empty report String reportFilePath = (System.IO.File.Exists(reportFilePath)) It will prompt to save it even if the file exists public ActionResult WebDocumentViewer(string WOId) I added a view to redirect the user to the designer page where he can modify and save the file I can download MyReport.repx file to his hard drive, but can not read back.ĭepending on the users browser settings this code let them download the. ![]() I tried with my son's laptop, same thing. When you run on the local machine, the server drive just happens to also be the client drive. The code that runs on the server can only write to servers drive. How can I make this thing to search the file in the users machine instead of the server? I'm using the file method to publish the website using this path: C:\bin\Release\Publish, then I copy and paste the whole thing into the IIS. If I add the file MyReport.repx there in the server's C:\ drive it works but the main idea is to have the users loading their document using their own layout saved in their own hard drive. = WOId Įverything works fine in my developing machine but when I publish it in my server it keeps on searching C:\ directory inside the Windows Server instead of the users machine and then give the error message: "Could not find file 'C:\Reports\MyReport.repx'." Using (var stream = new MemoryStream(System.IO.File.ReadAllBytes(filePath))) Var filePath = (System.IO.File.Exists(filePath)) Public ActionResult WebDocumentViewer(int? WOId) And they can load their reports using this code: ![]() Return File(reportLayout, "application/repx", "MyReport.repx") Public ActionResult ReportDesigner_ExportLayout()īyte reportLayout = (byte)Session //WILL OPEN THE POPUP OPEN/SAVE WINDOWS Using (MemoryStream ms = new MemoryStream((ReportDesigner))) Public ActionResult ReportDesignerSaveLayout(string ReportDesigner) I choose to let the users save their own reports layout using this code at the controller: //WILL CREATE THE DIRECTORY IF DOESN'T EXISTS I am able to have the logged in users to produce their own pdf using the report layout as well as a customized layout where they can add their own logo etc. I am able to design a report layout and save it in a root folder called Reports with the extension. Now I'm adding a report feature using a trial version of Devexpress Xtrareport. I'm developing a little MVC 5, EF, code first website based on the sample project AspnetIdentitySample with user's identity/membership.Įverything so far is great. TITLE SHOULD BE: "Unable to load a Devexpress Report
0 Comments
Leave a Reply. |