dcsimg
Results 1 to 13 of 13

Thread: application closing while printing using CR

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    application closing while printing using CR

    Guys i deployed my application. When i install the exe in my client post and i try to print using CR it closes the application. I installed CRD in the client machine but still getting that error. Where am i going wrong???

  2. #2
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,136

    Re: application closing while printing using CR

    Are there any error messages? If not what kind of error trapping do you use? It is hard to suggest anything when all we know is the application closes.
    Please remember next time...elections matter!

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    3,737

    Re: application closing while printing using CR

    If CR stands for Crystal Reports then we need to know what version of crystal Reports and what version of Visual basic you are using because the way you distribute CR with a VB app has changed many times over the years.

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Re: application closing while printing using CR

    Am using VS 2012 and Crystal report Runtime 2010

  5. #5
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,136

    Re: application closing while printing using CR

    Quote Originally Posted by okouele21 View Post
    Am using VS 2012 and Crystal report Runtime 2010
    Are there any error messages? If not what kind of error trapping do you use? It is hard to suggest anything when all we know is the application closes.
    Please remember next time...elections matter!

  6. #6

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Re: application closing while printing using CR

    there is the error message:
    An unhandled exception was produced in your application. If you click on Continue,the app will ignore this error and try to continue,if you click on Quit,it will stop immediately.
    An error occurred while creation this form. Fot more informations,consult Exception.InnerException. The error is:
    Cannot load the file or assembly 'CrystalDecisions.Windows.Forms, Version=13.0.2000.0. Culture=neutral,PublicKey Token=692fbea5521e1304' or one of his dependencies. The specified file cannot be found
    Something to do with Framework??? Am using VS2012

  7. #7
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,136

    Re: application closing while printing using CR

    This is what I see as the error in the message:

    Cannot load the file or assembly 'CrystalDecisions.Windows.Forms'

    That is an actual reference. Do you have it in your project?
    Please remember next time...elections matter!

  8. #8

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Re: application closing while printing using CR

    In my project i can load the report. This error is happening in the client machine. I even installed the CR runtime on the client machine. Still getting the error

  9. #9

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Re: application closing while printing using CR

    I also installed CR in my references in the project

  10. #10
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,136

    Re: application closing while printing using CR

    It seems cut and dry to me:

    Cannot load the file or assembly 'CrystalDecisions.Windows.Forms'

    It cannot load that. Go to regedit on the client machine and see if you can find it. If you do see it check the file version against yours. The message probably isn't lying
    Please remember next time...elections matter!

  11. #11

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Re: application closing while printing using CR

    May be am not using the right version of CR runtime for VS2012. And probably not loading the file properly in my projet?

  12. #12
    PowerPoster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,136

    Re: application closing while printing using CR

    Quote Originally Posted by okouele21 View Post
    May be am not using the right version of CR runtime for VS2012. And probably not loading the file properly in my projet?
    I'm not an expert by any means but I've worked with the same stuff. I would try to copy your assembly to the other machine, register it, and see if that works. It is not the final solution, just looking for the issue. I think that stuff is in: Windows\assembly\GAC_MSIL\CrystalDEcisions\WindowsForms\ABUNCHOFNUMBERS\CrystalDecions.Windows.Forms .dll
    Please remember next time...elections matter!

  13. #13
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    3,737

    Re: application closing while printing using CR

    SAP Crystal Reports has a forum, here is one example on topic https://archive.sap.com/discussions/thread/3518227

    I would suggest joining here https://www.sap.com/community/topic/...l-reports.html

    It's where you'll find the most knowledgeable Crystal Reports people.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width