Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

PrintForm not displaying contents in Windows 7

$
0
0
Hi,

Thanks in advance for any help. I am perplexed by this problem. I have a VB6 form that credits/debits an account. And if a checkbox is clicked, a receipt (another form) will be printed using the PrintForm function. This works flawlessly in XP and earlier versions of Windows. However, in Windows 7, only the outline of that 2nd form is printed. There are no contents populated.

From what I understand, Windows 7 is compatible with VB6, so I'm not sure what's breaking here. I'm not getting any kind of error messages.

This is the code snippet that calls the print:

If chk_Receipt.Value = 1 Then
Load frm_FundingReceipt
Printer.PaperSize = vbPRPSLetter
Printer.Orientation = vbPRORPortrait
frm_FundingReceipt.PrintForm
Unload frm_FundingReceipt
End If

Again, this works fine in XP and earlier versions. Any insight as to why it's failing in Windows 7 or what I should do is greatly appreciated.

Thanks,

Mike

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>