Visual Studio Developer Center > Visual Studio Forums > Crystal Reports for Visual Studio > Crystal Report Table lines and image not visible when called through addin
Ask a questionAsk a question
 

QuestionCrystal Report Table lines and image not visible when called through addin

  • Thursday, October 08, 2009 7:46 AMSameer Panse Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I have a project which is configured as class library and contains form along with Report Viewer control. When this report from class library is called from windows application, report is visible along with images and lines for table.

    Scenario where problem is faced -
    I have addin project which is calling crystal report from class library. This addin is installed on some existing application.
    Crystal reports show required data, but table lines and images are not visible.

    As you can see now, in both scenarios mentioned above, class library is same, but only the project from which it is called is different.

    Has anyone faced this problem? Can anyone give me some directions?

    Regards,
    Sameer
    Sameer Panse

All Replies

  • Thursday, October 29, 2009 5:57 PMRupert Davis Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Are the crystal dll the same on both projects or is one using an older set of references?
    Are the dll's on the target machines the same or is this the problem.

    Are the display properties the same in  both scnenarios or does the app control the dipslay of the report?

    Regards

    Rupert
    the problem is not what you don't know it's what you think you know that's wrong
  • Monday, November 02, 2009 4:24 PMSameer Panse Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Dlls are same. References are also correct. I found out that when window is re-sized, table lines and image immediately becomes visible. Also now if i I switch windows and come back to report window, the portion of report window overlapped by other window does not refresh. Table and image again go missing.

    Any idea how I can fix this?

    Thanks,
    Sameer
    Sameer Panse
  • Monday, November 09, 2009 12:53 PMRupert Davis Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Sameer,

    If the window is not refreshing when it recieves focus, you may need to either redraw the window or refresh the report (less desireble).

    In the gotfocus  event for the form you can use me.invalidate to force a redraw of the form surface at focus


    I find it odd that crystal loses defintion on refocus as I use the report viewer a lot in applications and have never had a problem with the form being redrawn correctly on focus.

    Regards

    Rupert
    the problem is not what you don't know it's what you think you know that's wrong