Hi
I am in the process of coding a .NET C# application. It is a Windows application.
Can I invoke a WebFocus report from it.
When it encounters the code that tries to logon to WebFocus I am getting this error message
"Client found response content type of 'text/html; "
The code is as follows
WebReference.WebFocus wfs = new WebReference.WebFocus();
WebReference.LogOnInfo logon = new WebReference.LogOnInfo();
WebReference.WebFocusReturn ret = new WindowsApplication2.WebReference.WebFocusReturn();
WebReference.FexInfo report = new WindowsApplication2.WebReference.FexInfo();
WebReference.ValuesArrayEntry parm1 = new WindowsApplication2.WebReference.ValuesArrayEntry();
string newOutput = "";
string tempFile = "";
string[] parms = new string[2];
parm1.name = "CASETYPE";
parm1.val = "EXTERNAL";
try
{
report.server = "EDASERVE";
report.app = "ic001w03_cases15daysold";
report.name = "ic001w03_cases15daysold";
logon = wfs.WebFocusLogOn("a76243","ramesh21","","");
ret = wfs.WebFocusRunFex(logon, report);
newOutput = ret.output;
if (ret.mime == "application/vnd.ms-excel" )
tempFile = "c:\\temp\\cases_out.xls";
else
tempFile = "c:\\temp\\cases_out.pdf";
wfs.WebFocusRunFex(logon,report);
}
catch (Exception ex)
{
System.Diagnostics.Debug.Write(ex.ToString());
throw ex;
}
Any help will be appreciated
rs