RE: Printing an Access report using late binding
- From: TrussworksLeo <Leo@xxxxxxxxxxxxxxx>
- Date: Fri, 22 Aug 2008 08:32:00 -0700
Dirk,
Sorry I am still missing somthing. How do I get the View to work correctly
with late binding?
It does not understand what acViewnormal means? I forgot to switch back to
late binding before running my last test.
Now that I am using late binding again it shows a dialog which I would like
to avoid.
Thanks, Leo
--
Thank You, Leo
"TrussworksLeo" wrote:
Hello,.
I am having problems getting access to print using late binding. I am
specially
having problems with this line and the ObjectType property
oAccess.DoCmd.SelectObject(ObjectType:=oAccess.AcObjectType.acReport,
ObjectName:=Report, InDatabaseWindow:=True)
How do I tell it to use a access report with late binding?
Here is all the code:
Dim sDBPath As String 'path to Reports.Adp
Dim oAccess As Object
'oAccess = CreateObject("Access.Application")
' The path to Reports.Adp:
sDBPath = "C:\Alpine\Ais\Reports.adp"
' Open Reports.adp in shared mode:
oAccess.OpenCurrentDatabase(filepath:=sDBPath, Exclusive:=False)
' Select the report name in the database window and give focus
' to the database window:
oAccess.DoCmd.SelectObject(ObjectType:=oAccess.AcObjectType.acReport,
ObjectName:=Report, InDatabaseWindow:=True)
oAccess.DoCmd.OpenReport(ReportName:=Report,
View:=oAccess.AcView.acViewNormal)
Thank You, Leo
- Follow-Ups:
- Re: Printing an Access report using late binding
- From: Dirk Goldgar
- Re: Printing an Access report using late binding
- References:
- Printing an Access report using late binding
- From: TrussworksLeo
- Printing an Access report using late binding
- Prev by Date: Re: Windows 2003 Fax Service: FaxComEx.FaxDocument.ConnectedSubmit :Access Denied when not an Admin on Service Server
- Next by Date: RE: Table into Word
- Previous by thread: Re: Printing an Access report using late binding
- Next by thread: Re: Printing an Access report using late binding
- Index(es):
Relevant Pages
|