Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

Without Crystal Report on SAP Form yet

$
0
0

Hi experts!

 

I follow this thread http://scn.sap.com/thread/3500063 I wonder if someone has solved this issue I've tried many different ways without success.

 

Summarizing: When you try to assign a report document or a CRAXDDRT Report to a crystal report viewer on a SAP B1 form like is showed below you get an exception "Specified cast not available"

 

   ' on Next line exception raised "Specified cast not available"

            RepViewer.ReportSource = cryRpt

 

I also tryed to create a crystal decisions windows form crystal report viewer, get the report source an assign it to the report viewer but I get the same error (oRpt is a report document which is loaded previously)

 

     Dim oCRForm AsNew CrystalDecisions.Windows.Forms.CrystalReportViewer

     oCRForm.ReportSource = oRpt

     RepViewer.ReportSource = oCRForm.ReportSource

 

If I set the path directly I get the same error

 

     Dim sRptPath As String

     sRptPath = Windows.Forms.Application.StartupPath() + "\Report.rpt"

     RepViewer.ReportSource = sRptPath

 

I'm using CrystalActiveXReportViewerLib14.CrystalActiveXReportViewer, VS2010, VB, Windows 8 Pro

Is there another way to show it on a SAP B1 form ?

 

Best regards.


Viewing all articles
Browse latest Browse all 8807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>