Iam dynamically generating a PDF report by writing a byte array to a file,I need to control the size of the margin which is generated .I would like to get this done without using any 3rd party dll's ,Please advise me how to proceed
Here is my code
byte[] bytes = reportViewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
string path = ReportPath +@"ErroReports";
System.IO.File.WriteAllBytes(path+@"ErrorReport"+DateTime.Now.ToLongDateString()+ ".pdf", bytes);
I have googled this but i am only seeing suggestions about using 3rd party dlls, I only need to know whether it is possible to alter that byte array to set margins