Solved

What is Error Number 713, Application-Defined or Object-Defined Error

Posted on 2004-10-19
2
902 Views
Last Modified: 2008-01-09
What is the cause of Error Number 713, "Application-Defined or Object-Defined Error".

Anybody know if there is a general cause for this error.  I just developed several VB reports using the VB report writer.  They work perfectly on my development machine but when I moved the app to another machine I got the 713 error when I tried to print.

The code to initiate the Print is:

Public Sub Print0ConsequenceCol()

Dim rsConsq0Info As New ADODB.Recordset

With rsConsq0Info
' data
  .Fields.Append "rCondesc1", adVarChar, 100
  .Fields.Append "rLabel1", adVarChar, 100
'
  .CursorType = adOpenKeyset
  .LockType = adLockOptimistic
  .Open


  Dim f As New frmDescription
    .AddNew
' labels (but really text boxes on MainInfo Page)
    ![rConDesc1] = f!ConDesc1.Text
    ![rLabel1] = f!Label1.Caption
'
    .Update
'
    Set f = Nothing
'
End With
'
With rptConsequenceInfo0
  Set .DataSource = rsConsq0Info
  .DataMember = rsConsq0Info.DataMember
'  .Orientation = 2    ' rptOrientLandscape
  DoEvents
    If PrintEm = True Then
        .PrintReport
    Else
        .Show vbModal
    End If

End With
'
Set rsConsq0Info = Nothing

'rsConsq0Info.Close

'
End Sub
0
Comment
Question by:mlcktmguy
2 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 12356134
Did you install the application on that other machine or just copied the executable ?
I guess it will need some depending dll's, that are on your development pc, but not on your other pc.

Try to make a setup-program, run the setup and try again.
(deployment & package wizard)
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 12357112
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question