在打印行上显示预览但不打印 [英] On Print line displays in preview but does not print

查看:93
本文介绍了在打印行上显示预览但不打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个报告,其中包含我想要在列之间绘制线条的列,我做了一些搜索,发现要执行此操作,我可以使用On Print事件并绘制线条。我遇到的问题是打印预览中显示的行,但打印
页时则没有。


在测试中,我有一个空白报告并添加了以下内容将事件打印到详细信息部分


Private Sub Detail_Print(取消为整数,PrintCount为整数)

Me.DrawWidth = 25

lngColor = RGB(0,0,0)

Me.Line(755,0) - (755,Me.Height),lngColor

Me.Line(150, 10) - (150,50),lngColor

结束子


在测试报告中没有专栏创建报告添加了一个标签,以确保打印的东西。当我预览时,我会看到线条。当我打印报告时,线条不打印。我尝试了三种不同的打印机。


谢谢


Kirk

解决方案

< blockquote>

嗨Kirk,


尝试在Format事件中移动或复制代码。


只是想一想......


I have a report that has columns what I want to draw lines between the columns and I did some searching and found that to do this I can use the On Print event and draw the line. The problem I'm having is the lines show up in print preview but not when the page is printed.

In testing I have a blank report and have added the following on print event to the detail section

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.DrawWidth = 25
lngColor = RGB(0, 0, 0)
Me.Line (755, 0)-(755, Me.Height), lngColor
Me.Line (150, 10)-(150, 50), lngColor
End Sub

In the test report there are no columns just went to create report added a label to make sure something is printing. When I preview I see the lines. when I print the report the lines do not print. I have tried three different printers.

Thanks

Kirk

解决方案

Hi Kirk,

Try moving or copying your code in the Format event as well.

Just a thought...


这篇关于在打印行上显示预览但不打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆