Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6893057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:36:41+00:00 2026-05-27T06:36:41+00:00

I have created a windows form with a crystal reports viewer, a combo box

  • 0

I have created a windows form with a crystal reports viewer, a combo box to select a report to view, and a button that I would like to (Print All Reports). The print button in the viewers toolbar will print the report currently being viewed. I want the button in my application to print all the reports without viewing them.

I have following code, but it throws an exception of type ‘CrystalDecisions.Shared.CrystalReportsException’ occurred in CrystalDecisions.CrystalReports.Engine.dll
Additional information: Load report failed.

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms


Public Class frmReport

Private Sub frmReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub cboReport_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboReport.SelectedIndexChanged

    Dim rptCustomer As New Customer
    Dim rptEmployee As New Employee

    Select Case cboReport.SelectedIndex
        Case 0
            Me.CrystalReportViewer1.ReportSource = rptCustomer
        Case 1
            Me.CrystalReportViewer1.ReportSource = rptEmployee

    End Select

End Sub

Private Sub btnPrintReports_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintReports.Click

    Dim rptCustomer As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    Dim rptEmployee As New CrystalDecisions.CrystalReports.Engine.ReportDocument

    rptCustomer.Load("Customer.rpt")
    rptEmployee.Load("Employee.rpt")

    rptCustomer.PrintToPrinter(1, False, 0, 0)
    rptEmployee.PrintToPrinter(1, False, 0, 0)

End Sub


End Class

I have searched and failed to find a solution. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:36:42+00:00Added an answer on May 27, 2026 at 6:36 am

    When you call CrystalDecisions.CrystalReports.Engine.ReportDocument‘s Load method you need to specify a path and a filename.

    Also, have you granted NETWORK SERVICE permissions on Windows\Temp?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey there everyone. so, have a c# windows form that uses crystal reports and
For my C# Windows Form Application, I have created a flowlayoutpanel that contains several
I have a created a visual studio 2010 project that creates a windows form
I have a windows form 'MyForm' with a text box that is bound to
I have created a fairly substantial Java GUI application with many form windows where
Im using c# .net windows application form. I have created many databases with many
Im using c# .net windows form application. I have many databases created using sql
I have created two forms in my Windows Application. One Form acts as a
I have created a Windows Forms application in .NET 2 using C# that runs
I have created a custom data grid control. I dragged it on windows form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.