回复 1楼walter的帖子
walter 你好,
1.VS Printer 无法设置不弹出保存对话框。
可以直接导出到 RTF 文件。一定要生存 PDF 文件吗?下面是一段测试代码:
- With vp
-
- .ExportFile = "E:\method1.rtf"
- .ExportFormat = vpxRTF
-
-
- .StartDoc
-
- .FontSize = 16
- .FontBold = True
- .Paragraph = "Text in tables exports to PLAIN RTF"
- .Paragraph = ""
- .FontBold = False
- .FontSize = 11
-
- .StartTable
- .AddTable "2000|^1300|>2000", "", ""
- .TableCell(tcRows) = 10
- For r = 1 To 10
- For c = 1 To 3
- .TableCell(tcText, r, c) = "Cell " & r & " " & c
- If c Mod 2 <> r Mod 2 Then
- .TableCell(tcBackColor, r, c) = vbYellow
- .TableCell(tcForeColor, r, c) = vbBlue
- .TableCell(tcFontBold, r, c) = True
- End If
- Next
- Next
- .EndTable
-
- .FontSize = 16
- .FontBold = True
- .Paragraph = ""
- .Paragraph = ""
- .Paragraph = ""
- .Paragraph = "Or you can use tabs..."
- .Paragraph = ""
- .FontBold = False
- .FontSize = 11
-
- For r = 1 To 5
- .Text = String(r, Chr(9))
- .Paragraph = "Margin now set to " & .MarginLeft
- Next
- .MarginLeft = 1440
-
- .EndDoc
-
- End With
复制代码
2.关于 vsreport8 问题,我需要向开发人员核实,看是否能否解决。
3.请问使用的是正式版还是试用版?如果是试用版建议使用 C1 Winform 平台来实现该功能,使用相对 VB6 来说更加方便。 |