When I try to call my report from .Net, it basically just opens the template. it doesn't run the report and fill in any of the tags. What am i doing wrong?
string connectionString = ISymitarObject.GetConnString();
IReportDataSource data = new AdoDataSourceImpl(typeof(SqlConnection), connectionString);
KeyPairDictionary map = new KeyPairDictionary();
map.Add("transactionID", transactionID.ToString());
data.Map = map;
string templateFilePath = ISymitarObject.GetTemplateFile();
Stream template = null;
template = File.Open(templateFilePath, FileMode.Open, FileAccess.Read);
Report report = new ReportRtf(template);
report.ProcessSetup();
report.ProcessData(data, "");
report.ProcessComplete();
Response.BufferOutput = true;
Response.ContentType = "application/msword";
Response.BinaryWrite(((MemoryStream)report.GetReport()).ToArray());
report.Close();
data.Close();