<IIF([规格_宽mm] = "",[规格_公称mm] & IIF([规格_长mm] is null or [规格_长mm]="","",",L=") & [规格_长mm],"", [规格_公称mm] & "," & [规格_宽mm] & "×" & [规格_长mm])>
有没有可能在空白行的第一行显示“以下空白”
[此贴子已经被作者于2024/11/16 16:28:19编辑过]
生成报表后,另使用代码打开文件,倒序遍历execl文件所有行,如果是第一个空行就填入“以下空白”:
http://www.foxtable.com/webhelp/topics/1144.htm
Dim Book As New XLS.Book(ProjectPath & "Attachments\出库单.xls")
Dim fl As String = ProjectPath & "Reports\出库单.xls"
Book.Build() '生成细节区
For n As Integer = Sheet.Rows.Count -1 to 1 step -1
if Sheet(n,名称列的索引).Value > "" then
Sheet(n+1,名称列的索引).Value = "以下空白"
exit for
end if
next
Book.Save(fl) '保存工作簿
单元格表达式改后,生成Excel表,规格列没有显示<IIF([规格_宽mm] = "",[规格_公称mm] & IIF([规格_长mm] is null or [规格_长mm]="","",",L=") & [规格_长mm],"", [规格_公称mm] & "," & [规格_宽mm] & "×" & [规格_长mm])>
[此贴子已经被作者于2024/11/19 13:16:31编辑过]