create dynamic table in powerpoint using openXML with c# and ASP.net

十年热恋 提交于 2019-12-01 14:31:37

Okay, I can place the table at any location I want to by changing values in this.. for X and Y.. not sure what Cx and Cy values does. So that works

graphicFrame.Transform = new Transform(new D.Offset() { X = 1650609L, Y = 4343400L }, new D.Extents() { Cx = 6096000L, Cy = 741680L });

But now the new issue is I am unable to reduce the font and table row height. I tried changing this values but nothing works. Will post here when I find out.

 D.TableRow tableRow = new D.TableRow() { Height = 370840L };

I had to to make this change in createTextCell method: added FontSize=800

 D.RunProperties runProperties = new D.RunProperties() { Language = "en-US", Dirty = false, FontSize=800 };
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!