Free Support Forum - aspose.com

Control image width when exporting to pdf

Hello,

when Exporting aspx page to pdf , I want to widen the widht of image(chart control)

is there any way to control the dimentions of images?

any help will be appreciated

here is my code:

....

Dim row3 As Row = tbl.Rows.Add()

Dim cell3 As Cell = row3.Cells.Add

str = chartTitle

Dim hdrComulativeChart As New Aspose.Pdf.Text(str, subheader_txtinfo)

cell3.Paragraphs.Add(hdrComulativeChart)

ChartControl1.Save(mstream)

Dim image1 As Aspose.Pdf.Image = New Aspose.Pdf.Image()

cell3.Paragraphs.Add(image1)

image1.ImageInfo.ImageFileType = ImageFileType.MemoryBmp

image1.ImageInfo.OpenType = ImageOpenType.Memory

image1.ImageScale = 0.5F

mstream.Position = 0

image1.ImageInfo.MemoryData = reader.ReadBytes(CType(mstream.Length, Integer))

...

Hi,

Thank you for considering Aspose.

Please refer to FixWidth and FixHeight.

Hi Tommy,

thanks for replying

image2..ImageInfo.FixWidth =... doesnt help

the image still have its last width

The image located inside a table (with enough spase to grow)

is there something else i must do?

Sorry ,

I found my problem

the row image2..ImageInfo.FixWidth =600 has no influence becaue i wrote also:

image1.ImageScale = 0.5F

Thank you

Shlomit