Focal Point
Call report via webpage in VB.Net

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2011024461

April 20, 2006, 03:20 PM
rc
Call report via webpage in VB.Net
All,
Tried tech support but they haven't gotten back to me. Hoping someone else has ran into this issue.

Have an ASP.Net page written in VB.Net. From the page looking to call two reports, first report will return PDF format and the second Excel.

The pdf is working without a hitch but the Excel is having some problems. The below code calls the pdf. Tried the same for exl2k but its not working
Dim UrlPDF As String = "http://tsrv1/ibi_apps/WFServlet?IBIF_ex=Smart-PDF-2&IBIAPP_app=RickTest"
Response.Redirect(UrlPDF)

What I get when I run the above for the excel file is, Excel opens and a workbook containing an xml like version of the data, there are some html tags in the output too.
It’s nothing usable by a user.

Has anyone called a exl2k report via c# or VB.Net?
April 20, 2006, 03:26 PM
Kamesh
If you type the URL directly on browser, is that works?


WFConsultant

WF 8105M on Win7/Tomcat
April 20, 2006, 05:10 PM
rc
Got it.
The only place its not working correctly is on the development box. When I URL directly or through the app from another box it works great.

My assumption is that on the development box the xht, xls file extensions are not set to open through excel. Need to prove that out.
April 21, 2006, 09:44 AM
Kamesh
Yes, you are right. Try change the setting in mime.wfs and see that solves your problem.


WFConsultant

WF 8105M on Win7/Tomcat
April 21, 2006, 11:27 AM
rc
That was it, thanks..