I have the following code. It works, but the problem is if the image is too wide for the page, it is simply cut off. I need a way to tell the component to essentially ‘shrink to fit’ so the entire image can be visible.
’ instantiate a Bitmap object<o:p></o:p>
Dim bmp As Bitmap = New System.Drawing.Bitmap("c:/pdftest/Map.png")
' set page width equal to image width dimensions
sec1.PageInfo.PageWidth = bmp.Width
' set page height equal to image height dimensions
sec1.PageInfo.PageHeight = bmp.Height
Thanks, that worked!