Solved

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

Posted on 2004-10-19
2
898 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 69

Accepted Solution

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now