![]() ![]() DevExpress is calling this Reports V2 and it largely supersedes my previous workarounds. This has a lot of shortcomings some of which I have addressed in previous blog posts.īut now finally it is now possible to build XAF reports directly from Visual Studio. They were objects serialized to a file and then loaded into the database during initialisation. Prior to this version, XAF reports were not source code. This part is an in-depth review of the new report writer features (still in beta). This post is the first part of an overview of the brand new version XAF 13.2 which will be released any day now. Return View(ViewBag.The first version of XAF I ever installed was called eXpressApp-1.0.CTP2.exe in July 2006! It has certainly come a long way since then. 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. |