首页 新闻 会员 周边

c# 生成word,怎么固定列表宽度,兼容苹果手机

0
悬赏园豆:50 [已解决问题] 解决于 2017-09-15 15:07

 如上图所示,后台设置的宽度(事实后台设置过宽度),感觉完全没有,但是安卓手机打开确实正常的,pc也是正常的

下面是设置宽度代码:
table_base.AutoFitBehavior(WdAutoFitBehavior.wdAutoFitContent);//根据内容自动调整表格
table_base.AutoFitBehavior(WdAutoFitBehavior.wdAutoFitWindow); //根据窗口自动调整表格

table_base.Columns[1].SetWidth(80f,WdRulerStyle.wdAdjustProportional);
table_base.Columns[3].SetWidth(80f, WdRulerStyle.wdAdjustProportional);
table_base.Columns[2].SetWidth(134f, WdRulerStyle.wdAdjustProportional);
table_base.Columns[4].SetWidth(134f, WdRulerStyle.wdAdjustProportional);

聆听黑夜的主页 聆听黑夜 | 初学一级 | 园豆:168
提问于:2016-12-02 14:21
< >
分享
最佳答案
0

//设置表格样式

                table_base.Borders.OutsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleThickThinLargeGap;             table_base.Borders.InsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleSingle;
table_base.Columns[1].Width = 100f;
table_base.Columns[2].Width = 220f;
table_base.Columns[3].Width = 105f;
收获园豆:50
liangtong | 菜鸟二级 |园豆:305 | 2016-12-02 20:45

不行,这种做法我试过,iphone微信打开,表格的宽度还是没有固定。

聆听黑夜 | 园豆:168 (初学一级) | 2016-12-05 10:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册