views:

13

answers:

1

I have images of active report in database, when i get into bytes and convert into memory stream so it can pass to active report viewer then how i get paper size of paper display in active report? My code :

 Dim repmem As New System.IO.MemoryStream(rptBytes)
 repmem.Position = 0
 Viewer1.Document.Load(repmem)
A: 

Every document page has its own size which could be accessed as:document.Pages(0).Size

olegz