iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
When we use the grid export, it uses a TempReports path that must exist within the application path so it can create/manage its temporary files for export.
We don't want to have any temp files within our application path which can recycle the IIS application in the pool. How can we override this with our own path? Thanks.
Hello,
You can use the following code in order to place the temporary exported file:
protected void Button1_Click(object sender, EventArgs e) { string file = WebGrid1.ExportGrid(new ISNet.WebUI.WebGrid.DynARInfo("html", Server.MapPath("/SISTemp/"), "WebGridToHTML")); // export grid data }
The exported file will be generated in SISTemp. Ensure that you have granted permission for user to access that folder, such as setting the security settings to Everyone.
You can search the members of DynARInfo in WebGrid documentation. Simply search "DynARInfo Class Members", the choose the same name in the results.
Hope this helps. Thank you.
Regards,-Martin-
We do have this scenario in WebGrid documentation. You can try to use the following code:
private void Button1_Click(object sender, System.EventArgs e) { // invoke the grid's export feature // through the server side WebGrid1.ExportGrid(SetDynInfo()); } private DynARInfo SetDynInfo() { // configure the DynARInfo object // as the parameter for the ExportGrid() method // need to configure 4 things : // dynInfo.ReportType // dynInfo.ReportPath // dynInfo.IISReportPath // dynInfo.DynPageOrientation DynARInfo dynInfo = new DynARInfo("html", Server.MapPath("~/TempReports") + @"\"); dynInfo.IISReportPath = "/TempReports/"; dynInfo.DynPageOrientation = PageOrientation.Portrait; return dynInfo; }
Thanks Martin. Can you uplease give me an example of using the following UNC path that's OUTSIDE of the application directory structure?
\\LOCALHOST\SISTemp\
So how would you configure the above since I don't understand what IISReportPath does. Also, can you point me to the documentation for the DynARInfo please? Thank you.
Thank you Martin. That helped. It was hard, at first, to figure out, but your examples are very helpful and we got it working externally now. What was not clear at first is the IISReportPath. We essentially had to set up a separate location on another server that is virtually mapped to this folder inside the web application so it doesn't actually impact the application and possibly recycling it.
Glad to hear the good news!
Should you have further question about our product, please feel free to post your inquiry to this community forum, and we will be glad to assist you.
Thank you.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname