In Access 2002 I've just tried placing a simple tab control onto a new form.
It shows up fine and seems to work as advertised on screen,
but, the tabctl outline and tab headings don't print.
Any ideas?
Thanks, DaveBo
Printable View
In Access 2002 I've just tried placing a simple tab control onto a new form.
It shows up fine and seems to work as advertised on screen,
but, the tabctl outline and tab headings don't print.
Any ideas?
Thanks, DaveBo
I don't know if this will work with Access VBA, but it works great with VB. Give it a shotvb Code:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Const VK_MENU As Byte = &H12 Private Const VK_SNAPSHOT As Byte = &H2C Private Const KEYEVENTF_KEYUP = &H2 Private Sub cmdPrintForm_Click() Dim lWidth As Long, lHeight As Long Clipboard.Clear Call keybd_event(VK_MENU, 0, 0, 0) Call keybd_event(VK_SNAPSHOT, 0, 0, 0) DoEvents Call keybd_event(VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0) Call keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0) Printer.Print If Width > Printer.ScaleWidth Then lWidth = Printer.ScaleWidth lHeight = (Printer.ScaleWidth / Width) * Height Else lWidth = Width lHeight = Height End If Printer.PaintPicture Clipboard.GetData, 0, 0, lWidth, lHeight Printer.EndDoc End Sub