Dim outputFormat As String = "JPEG" '' TryCast(sender, Button).Text.ToLower() Dim renderedBytes As Byte() If outputFormat = "JPEG" Then renderedBytes = RV.LocalReport.Render(reportType, "<DeviceInfo><OutputFormat>JPG</OutputFormat></DeviceInfo>") Else renderedBytes = RV.LocalReport.Render(reportType, "<DeviceInfo><OutputFormat>PNG</OutputFormat></DeviceInfo>") End If Using Stream As New FileStream(strfilepath & "\" & "JPG" & "\" & strfilename & ".JPEG", FileMode.Create) Stream.Write(renderedBytes, 0, renderedBytes.Length) End Using
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)