OpenReport acViewNormal in ART 2002 displays error 2212

  • Thread starter Thread starter Nathan Campbell
  • Start date Start date
N

Nathan Campbell

I have an Access 2002 ADP/ADE that is connected to a SQL Server 2000. Many
forms have a command button that prints a report specific to that form. For
example:

DoCmd.OpenReport ReportName:="rptItmLbl", View:=acViewNormal

The code works fine when run in the full version of Access 2002 (with or
without the /runtime switch). However, when run in the Access 2002 Runtime
version, Microsoft Access Error 2212 ("Access couldn't print your object")
is displayed. When I change the code to the following, the report is
correctly displayed in preview mode. The report can then be successfully
printed by selecting Print from the File menu.

DoCmd.OpenReport ReportName:="rptItmLbl", View:=acViewPreview

Any suggestions would be appreciated. Thanks.

Nathan Campbell
 
Try without the option View:=acViewNormal (which is the default option so
you don't need to specify it).

Have you specified the Printer for the Report? If Default Printer, make
sure a Printer is set as the Default Printer for the work-station.

HTH
Van T. Dinh
MVP (Access)
 
Back
Top