Quantcast
Channel: SQL Server Reporting Services, Power View Forum
Viewing all articles
Browse latest Browse all 4035

Image size when rendering in EMF output format

$
0
0
Hello folks,

A while back I wrote a .NET assembly with a COM wrapper to provide an interface between Report Services and legacy MS Access applications.  Basically, it returns the byte arrays from the .render method (output format emf) to be written into an Access image control.

This worked flawlessly on any 8.5"x11" RS report we threw at it on the first two Report Services I tried it against.  When we set up a third Report Service at another facility, the same reports were coming out with the physical dimension metrics on the emf as10"x13", so the Access version of the report is clipped significantly on the edges. 

I trapped the output into a System.Drawing.Image object in the .NET assembly and put a watch on it.  The two servers that work as I expected show HorizontalResolution and VerticalResolution as 96.0946, while the one that doesn't has these values as 81.2799.  The PhysicalDimension property shows 21542.3672 x 27939.4316 on the working servers and 25531.25 x 33031.25  Otherwise, the properties of the images seem to be identical.  The PhysicalDimension values I see are completely consistent with the size units of 0.01 mm, as the the emf documentation indicates.  The resolution of 96 is consistent with the "Windows default" values of 96 dpi.  The ratio of the resolutions is correct for an 85% scaling factor for the "misbehaving" Report Service.

I have not been able to find any reason for the differences between the Report Services, and I have not been able to figure out how to control it.  I tried setting DpiX and DpiY as 96 in the DeviceInfo for the render call with no change in the behavior of either server.

Can anybody enlighten me on what is happening and what I need to do to get consistent behavior between the servers?  Or why the DpiX and DpiY settings for the emf rendering extension don't seem to work?

Thanks,
Tim Bailey
Energy Laboratories, Inc.



Viewing all articles
Browse latest Browse all 4035

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>