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:
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
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 IfPrinter.PaperSize = vbPRPSLetter
Printer.Orientation = vbPRORPortrait
frm_FundingReceipt.PrintForm
Unload frm_FundingReceipt
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