简体   繁体   English

如何使用C#打印没有隐藏单元格的Excel?

[英]How do I print Excel without hidden cells with C#?

I'm using C# and I want to make an Excel file without hidden cells. 我正在使用C#,并且要制作一个没有隐藏单元格的Excel文件。

I did some actions to hide rows, and I want to make an Excel file with that, but the Excel file showed full rows with hidden rows. 我做了一些隐藏行的操作,我想用它来创建一个Excel文件,但是Excel文件显示了带有隐藏行的完整行。

Is there any options or tip to hide invisible rows? 是否有任何选项或提示隐藏不可见的行?

List_Com.Sheets[0].Rows[i].Visible = false;

还尝试将行高设置为0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不更改C#中单元格格式的情况下编辑Excel单元格 - How to edit excel cells without changing format of cells in C# 使用SQL(ADO)将Excel拉入C#时,如何排除空行而不排除空单元格? - How do I exclude null rows without excluding null cells when pulling Excel into C# using SQL (ADO)? 如何使用ClosedXml和C#获取Excel中合并单元格使用的行数 - How do I get the number of rows used by the merged cells in Excel, using ClosedXml and C# 如何将特定的 excel 单元格值导入 C# 中的现有 datagridview 单元格 - How do I import specific excel cell values to existing datagridview cells in C# 在C#中解析Excel文件,单元格似乎被切断为255个字符...我该如何阻止它? - Parsing an Excel file in C#, the cells seem to get cut off at 255 characters… how do I stop that? 如何在未安装Office的情况下使用C#WPF打印Excel? - How to print Excel using C# WPF without Office installed? 如何在不创建损坏文件的情况下插入Excel单元格? - How do I insert Excel cells without creating a corrupt file? 如何在 C# 工作表中合并 Excel package 工作表的单元格? - How can I merge cells of Excel package worksheet in C#? 如何在不使用手动格式的情况下以c#将文本打印到文档中? - how do i print text to a document in c# without manual formatting? 首页> C#>如何在不看到印象对话框的情况下打印文档 - c# - How do I print a document without see the impression dialog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM