Question : How do I print data only from forms in Word 2007?

I created a form document in Word 2003 that allows me to populate and then print only the information in the text box fields. This allows me to fill out a form and then print to a pre-printed form. Works great in 2003, but when I updated to 2007 it prints the whole page, not just the information in the text box fields.  
In 2003 I accomplish this by choosing 'Print Data only for forms" under Tools, Options, Print tab. How do I do the same thing in 2007?

Thanks
Bob Pahls

Answer : How do I print data only from forms in Word 2007?

Ok - I've asked my MVP friends and here's a response:

It doesn't work in Word 2007.

Here are a couple of macros and a function that temporarily turn the colour
of the borders to white, prints the document and then turns the borders back
to black

Sub FilePrint()
PrintForm
End Sub

Sub FilePrintDefault()
PrintForm
End Sub

Function PrintForm()
Dim atable As Table
Application.ScreenUpdating = False
With ActiveDocument
    .Unprotect
    For Each atable In .Tables
        With atable.Borders
            .InsideColor = wdColorWhite
            .OutsideColor = wdColorWhite
        End With
    Next atable
    .Protect Type:=wdAllowOnlyFormFields, NoReset:=True
    .PrintFormsData = True
    .PrintOut
    .Unprotect
    For Each atable In .Tables
        With atable.Borders
            .InsideColor = wdColorAutomatic
            .OutsideColor = wdColorAutomatic
        End With
    Next atable
    .Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End With
Application.ScreenUpdating = True
End Function


--
Regards,
Doug Robbins - Word MVP
Random Solutions  
 
programming4us programming4us