Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var ms = new MemoryStream())
- {
- if (ReportData.Tables.Count > 0)
- {
- DataSerializer.Serialize(ms, ReportData);
- }
- }
- DataTable dtCloned = ReportData.Tables[0].Clone();
- foreach (DataColumn column in dtCloned.Columns)
- {
- if (column.DataType == typeof(System.Object))
- objectColumns.Add(column);
- }
- if (objectColumns.Count > 0)
- {
- foreach (DataColumn column in objectColumns)
- {
- column.DataType = typeof(System.String);
- }
- }
- try
- {
- foreach (DataRow row in ReportData.Tables[0].Rows)
- {
- dtCloned.ImportRow(row);
- }
- }
- catch (Exception ex)
- {
- }
- <serviceDebug includeExceptionDetailInFaults="true" />
Add Comment
Please, Sign In to add comment