internal static void GenerateReportBody(MessageItem message, Stream outputStream, out CultureInfo cultureInfo, out Charset charset) { if (ObjectClass.IsDsn(message.ClassName)) { ReportMessage.GenerateDsnBody(message, outputStream, DsnHumanReadableWriter.DefaultDsnHumanReadableWriter, null, out cultureInfo, out charset); return; } ReportMessage.GenerateOldFashionedReportBody(message, outputStream, out cultureInfo, out charset); }
internal static Stream GenerateReportBody(MessageItem message, DsnHumanReadableWriter dsnWriter, HeaderList headerList, out CultureInfo cultureInfo, out Charset charset) { MemoryStream memoryStream = new MemoryStream(ReportMessage.EstimateGeneratedBodySize(message)); if (ObjectClass.IsDsn(message.ClassName)) { ReportMessage.GenerateDsnBody(message, memoryStream, dsnWriter, headerList, out cultureInfo, out charset); } else { ReportMessage.GenerateReportBody(message, memoryStream, out cultureInfo, out charset); } return(memoryStream); }