1) Picture & OleFrame:
I am using the following code to capture range of cells as image. Then i add this image as Picture of OleFrame. When I right click both OleFrame and the Picture on top of it, I get different sizes and scales. I want them to be same width, height, scale height%, scale width%.
How can i attempt to fix this?
workbookDesigner.Workbook.Worksheets[0].PageSetup.PrintArea = "A1:C16"; workbookDesigner.Workbook.Worksheets[0].PageSetup.BottomMargin = 0; workbookDesigner.Workbook.Worksheets[0].PageSetup.FooterMargin = 0; workbookDesigner.Workbook.Worksheets[0].PageSetup.TopMargin = 0; workbookDesigner.Workbook.Worksheets[0].PageSetup.LeftMargin = 0; workbookDesigner.Workbook.Worksheets[0].PageSetup.RightMargin = 1 workbookDesigner.Workbook.Worksheets[0].PageSetup.Zoom = 92; Bitmap imgChart = workbookDesigner.Workbook.Worksheets[dataSheetIdx].SheetToImage();
Aspose.Slides.Picture pic = new Aspose.Slides.Picture(pres, imgChart); int picId = pres.Pictures.Add(pic); byte[] chartOleData = new byte[wbStream.Length]; wbStream.Position = 0; wbStream.Read(chartOleData, 0, chartOleData.Length); OleObjectFrame oof = sld.Shapes.AddOleObjectFrame(x, y, slideWidth, slideHeight, "Excel.Sheet.8", chartOleData); oof.PictureId = picId; wbStream.Flush();
2) Picture size(Width and height) on ppt is in inches.
What are the units for Presentation.SlideSize.Width and Presentation.SlideSize.Height ? they dont seem to be inches. How can you convert those numbers to inches?
Thanks
</div>
</div><hr size="1" align="left" width="25%"><span style="text-color:gray">This message was posted using Email2Forum by <a href="/community/members/haley.stuart.aspx">haley.stuart</a>.