title: The report definition for report ' ' has not been specified
body: <p>i am developing web application, in my app i have to print rdlc without preview.my code is following</p>
  
  <pre><code>    LocalReport report = new LocalReport();
      report.ReportEmbeddedResource = "TCESS.ESales.CommonLayer.Reports.HandlingBillReport.rdlc";
      report.ReportPath="TCESS.ESales.CommonLayer.Reports.HandlingBillReport.rdlc";
  
      SettlementOfAccountsDTO objSettlementOfAccountsDTO = ESalesUnityContainer.Container.Resolve&lt;ISettlementOfAccountsService&gt;().GetSettlementOfAccountsByAccId(32);
      if (objSettlementOfAccountsDTO.Account_Id &gt; 0)
      {
          SetReportParametersForBill(objSettlementOfAccountsDTO, AccountReportViewer, report);
      }
  
      Export(report);
      m_currentPageIndex = 0;
      Print();
  
  
  private Stream CreateStream(string name, string fileNameExtension, Encoding encoding,
                          string mimeType, bool willSeek)
  {
      Stream stream = new FileStream(name + "." + fileNameExtension, FileMode.Create);
      m_streams.Add(stream);
      return stream;
  }
  
  private void Export(LocalReport report)
  {
      string deviceInfo =
        "&lt;DeviceInfo&gt;" +
        "  &lt;OutputFormat&gt;EMF&lt;/OutputFormat&gt;" +
        "  &lt;PageWidth&gt;8.5in&lt;/PageWidth&gt;" +
        "  &lt;PageHeight&gt;11in&lt;/PageHeight&gt;" +
        "  &lt;MarginTop&gt;0.25in&lt;/MarginTop&gt;" +
        "  &lt;MarginLeft&gt;0.25in&lt;/MarginLeft&gt;" +
        "  &lt;MarginRight&gt;0.25in&lt;/MarginRight&gt;" +
        "  &lt;MarginBottom&gt;0.25in&lt;/MarginBottom&gt;" +
        "&lt;/DeviceInfo&gt;";
      Warning[] warnings;
      m_streams = new List&lt;Stream&gt;();
  
      report.Render("Image", deviceInfo, CreateStream, out warnings);
  
      foreach (Stream stream in m_streams)
          stream.Position = 0;
  }
  
  private void PrintPage(object sender, PrintPageEventArgs ev)
  {
      Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]);
  
      ev.Graphics.DrawImage(pageImage, 0, 0);
  
      m_currentPageIndex++;
      ev.HasMorePages = (m_currentPageIndex &lt; m_streams.Count);
  }
  
  private void Print()
  {
      const string printerName = "\\\\193.168.0.20\\Printer_Q3";
  
      if (m_streams == null || m_streams.Count == 0)
          return;
  
      PrintDocument printDoc = new PrintDocument();
      printDoc.PrinterSettings.PrinterName = printerName;
      if (!printDoc.PrinterSettings.IsValid)
      {
          string msg = String.Format("Can't find printer \"{0}\".", printerName);
          Console.WriteLine(msg);
          return;
      }
  
      int i=0;
      foreach (Stream stream in m_streams)
      {
          Metafile pageImage = new Metafile(stream);
          pageImage.Save(Server.MapPath("~/Images/"+i.ToString()+".jpg"));
          i++;
      }    
      //printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
      //printDoc.Print();
  }
  </code></pre>
  
  <p>i am getting error "The report definition for report ' '  has not been specified"
  on line</p>
  
  <pre><code>report.Render("Image", deviceInfo, CreateStream, out warnings);
  </code></pre>