hi
Im using report viewer to to create a report in my application it creates perfectly and fits snuggly in one page but when i convert it to pdf and email it, it gets spread over 4 pages when viewed by a client who's recieving it.
Warning[] warnings;
string[] streamids;
string mimeType;
string encoding;
string extension;
byte[] bytes =ReportViewer1.LocalReport.Render("PDF", null, out mimeType,
out encoding, out extension, out streamids, out warnings);
MemoryStream s = new MemoryStream(bytes);
Attachment att = new Attachment(s, file);
SmtpClient smtp = new SmtpClient("pod51014.outlook.com");
MailMessage msg = new MailMessage();
msg.Subject = "Invoice Report";
msg.From = new MailAddress ("209@dut4life.ac.za");
msg.To.Add(get_Email());
msg.Attachments.Add(att);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.EnableSsl = true;
smtp.Credentials = new System.Net.NetworkCredential("209@dut4life.ac.za", "Dut920925");
smtp.Port = 587;
smtp.Send(msg);
I suspect that it gets ruined during my conversion to pdf
thanks in advance regards