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
Hi,
How can i export webgrid values to pdf from server side by clicking on a button.
I have done a code, In TempReports folder report is coming.. but not displaying..
on button click event
WebGrid1.ExportGrid(SetDynInfo())
Function is:
Private Function SetDynInfo() As DynARInfo
Dim Infopdf As New DynARInfo("PDF", Server.MapPath("~/TempReports") & "\") Infopdf.IISReportPath = "/TempReports/" Infopdf.DynPageOrientation = PageOrientation.Portrait Return Infopdf
End Function
Hi Allan,
I am sorry but currently we don't support the feature right now. If you want to display the export report immediately, you need to do it from client side.
Regards,
Julia
By using server-side programmatically, the result would not pop up automatically. To make you can get into the result easily, I suggest you use e.g. label control for this.
Below is the sample code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) WebGrid1.ExportGrid(SetDynInfo()) Label1.Text += "<br/> <a href = 'TempReports/WebGridToPdf.pdf'>[WebGrid to PDF]</a> " End Sub
Private Function SetDynInfo() As DynARInfo Dim dynInfo As DynARInfo = New DynARInfo("pdf", Server.MapPath("./TempReports/"), "WebGridToPdf") dynInfo.IISReportPath = "/TempReports/" dynInfo.DynPageOrientation = PageOrientation.Portrait Return dynInfo End Function
You can find this sample in our WebGrid's Sample > ProgrammaticExportServerSide.aspx.
I hope this help.
Hi Julia,
Thanks for ur reply,
But this is not the way ineeded. i have to redirect directly to to report on button click.
In client side am getting, but have to check in serverside to know which is faster..
Regards
Allan
Ok, thanks
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