ActiveReports.PdfExport Request technical support
ImageResolution Property
See Also  Example


Gets or sets the image resolution for the PDF export if a metafile is used as an image for the picture control or if the Page.DrawPicture api is used.

Syntax

Visual Basic (Declaration) 
Public Property ImageResolution As Integer
Visual Basic (Usage)Copy Code
Dim instance As PdfExport
Dim value As Integer
 
instance.ImageResolution = value
 
value = instance.ImageResolution
C# 
public int ImageResolution {get; set;}

Example

C#Copy Code
privateAvoidAbtnExport_Click(objectAsender,ASystem.EventArgsAe)
{
AAAArptDataDynamicsArptA=AnewArptDataDynamics();
AAAADataDynamics.ActiveReports.Export.Pdf.PdfExportApA=AnewADataDynamics.ActiveReports.Export.Pdf.PdfExport();
AAAAp.ImageResolutionA=A300;
AAAAp.ImageQualityA=ADataDynamics.ActiveReports.Export.Pdf.ImageQuality.Highest;
AAAArpt.Run();
AAAAthis.arv.DocumentA=Arpt.Document;
AAAAp.Export(rpt.Document,AApplication.StartupPathA+A"\\p.pdf");
}
Visual BasicCopy Code
PrivateASubAbtnExport_Click(ByValAsenderAAsASystem.Object,AByValAeAAsASystem.EventArgs)AHandlesAButton2.Click
AAAADimArptAAsANewArptDD
AAAADimApAAsANewADataDynamics.ActiveReports.Export.Pdf.PdfExport
AAAAp.ImageResolutionA=A300
AAAAp.ImageQualityA=ADataDynamics.ActiveReports.Export.Pdf.ImageQuality.Highest
AAAArpt.Run()
AAAAMe.Viewer1.DocumentA=Arpt.Document
AAAAp.Export(rpt.Document,AApplication.StartupPathA&A"\p.pdf")
EndASub

Remarks

Typical values are 75-2400 dpi. 75 dpi at low resolution would be used to save space, 150 dpi is used for normal screen viewing and 300 dpi and higher is used for print quality.  Use this property in combination with ImageQuality (highest) to yield the best results when exporting Windows metafiles (.wmf and .emf).  Neither property has any effect on other image types.

See Also