DeviceInfo attributes not recognized by SQL reporting web service

Discussion in 'Databases' started by lewisc0965, Feb 2, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. All,
    Following the example given by Tech Suport for discountasp.net I chose to enable the toolbar with a format of "HTML4.0" as illustrated in the code below. The results from this web service call do not include any of the device info attributes.




    net.discountasp.rs.ReportingService rs = new net.discountasp.rs.ReportingService();


    rs.Credentials = new System.Net.NetworkCredential("rs_XXXXXX", "XX");


    net.discountasp.rs.ParameterValue[] parms = new net.discountasp.rs.ParameterValue[2];


    net.discountasp.rs.ParameterValue pvFromDate = new net.discountasp.rs.ParameterValue();


    pvFromDate.Name = "fromDate";


    pvFromDate.Value = sFromDate;


    pvFromDate.Label = "From Date";


    net.discountasp.rs.ParameterValue pvToDate = new net.discountasp.rs.ParameterValue();


    pvToDate.Name = "toDate";


    pvToDate.Value = sToDate;


    pvToDate.Label = "To Date";


    parms[0] = pvFromDate;


    parms[1] = pvToDate;


    Byte[] results;


    String[] streamids;


    string Encoding, MimeType;


    net.discountasp.rs.ParameterValue[] ParmsUsed;


    net.discountasp.rs.Warning[] warns;


    string DeviceInfo;


    DeviceInfo = "<DeviceInfo><Toolbar>True</Toolbar><HTMLFragment>True</HTMLFragment>" +


    "<JavaScript>True</JavaScript><Parameters>False</Parameters><Section>0</Section></DeviceInfo>";


    results = rs.Render("/XXXX/reports/XXXX", "HTML4.0",


    null, DeviceInfo, parms, null, null, out Encoding, out MimeType, out ParmsUsed,


    out warns, out streamids);


    panReport.Controls.Add(new LiteralControl(System.Text.Encoding.Default.GetString(results)));
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page