Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

Value Cannot be null. Parameter name:inputString

$
0
0

I'm using CR13 with Visual Studio 2010(asp.net 3.5)

 

     I have problem at the time of export report in any format

     report is generated correctly but when I export it shows me error

   

     " Value Cannot be null. Parameter name:inputString"

 

     Please Help....

 

 

Thanks

Pankaj


Crystal Report Developer SDK for Visual Studio 2012 has issues

$
0
0

Hiiii

 

 

I have installed the SAP  Crystal Reports, developer version for Microsoft Visual Studio - 2012.

http://scn.sap.com/thread/3185805

 

I started having slow responsiveness from VS2012. But I managed to generate one report however my VS2012 performance was bad. Suddenly I tried to remove sub report object after deleting it's command, my VS2012 hanged. I resatred my compouter then try to open any class, or JS file , my VS2012  is not responding. I removed Crystal report developer version from my PC then my visual studio came back to work perfectly. I just want to ask VS2012 P5a is a stable version? Are they planing to update it with a new version? If not, Any suggestions for me to use Crystal Reports : do you think installing VS2008 and design the reports there separately from my web project as a good idea ?.

 

Thanks,

SAP Crystal Reports for VS2010 ReportDocument.Load() Freezes in Windows 2008 R2 x64

$
0
0

Dear All,

 

I have a problem in a Windows Server 2008 R2 Enterprise 64 Bits SP1 with a report.rpt. It freezes when is called the Load(pathName) method of ReportDocument. Others reports.rpt use the same method, they are in the same folder, and works well. This specific report works well in an another operational system too.

 

I'm using a Microsoft Framework .NET 4.0 64 Bits application in a Internet Information Services 7.5.

 

The version of Crystal installed in the server is CRforVS_redist_install_64bit_13_0_6. I already had uninstalled and installed for three times... thinking that there was any problem in the installation in the server.

 

The Report.rpt contains subreports. The subreports are shown against the data sent through dataset and parameters. In others machine with Windows 7 Professional 64 Bits with the same configuration and crystal installed, all subreports run fine with the same dataset and parameters.

 

I've checked the registry keys and try to configure anything without success. The registry keys there are:

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer]

"DataEngineName"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\crpe32.dll"

"ProcessingExtensionPath"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\ProcessExt"

"AgentLimit"="3000"

"AgentTimeoutMins"="60"

"ConnectionDirMgrProgIDs"="CrystalReports13.LocalConnMgr.0"

"DisablePrintJobCloning"="Yes"

"EnterpriseRequestTimeout(min)"="600000"

"JobSharingMaxDataAge(sec)"="12000"

"PrintJobLimit"="-1"

"PrintJobSharingTimeout"="90"

"ProcessAffinityMask"="-1"

"ReportDirMgrProgID"="CrystalReports13.LocalReportMgr.0"

"RequestWorkerThread"="500"

"ResultFieldsSortMethod"="1"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\LocalConnectionMgr]

"ConnectionDirectoryPath"="c:\\"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\ReportDocument]

"AsnycSQL"="No"

"MaxNumOfRecords"="-1"

"NumOfBrowsingRecords"="1000"

"NumOfCachedBatches"="-1"

"PushDownGroupBy"="No"

"ReportStyle"="9"

"RowsetBatchSize"="1000"

"SaveDataWithDoc"="Yes"

"SelectDistinctRecords"="No"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\RptDirMgrProgIDs]

"default"="CrystalReports13.LocalReportMgr.0"

"file"="CrystalReports13.LocalReportMgr.0"

"ras"="CrystalReports13.LocalReportMgr.0"

 

Best regards,

Jener Garcia Menezes

System Architect at Prosegur S/A

ADO.NET: Exception...target of an invocation, when using WebConfigurationManager outside of Try Catch

$
0
0

I’m in the process of creating several Crystal Reports that will use an ADO.NET datasources that were generated using datasets generated from a classes shared functions .  When creating my second report, Crystal Designer reported an error after choosing the method from my new class.  The error was:

“Login Failed.  Details: mscorlib: Exception has been thrown by the target of an invocation.”

I didn’t have this issue at all with my first report.  To validate the dataset, I created a test web page which I linked the same dataset to a data grid and it worked just fine.

It took me a while, comparing the code between my classes and changing the new class one line at a time to match the working class, but I figured out the cause.  In my new class, I was using multiple databases for the source of creating the dataset being returned in my new class.  As part of that, I was making a call to get the connection string to the database from my web.config.  Basically this line was causing the error:

Dim ConnStr as String = WebConfigurationManager.ConnectionStrings.Item("oConnectionString").ToString()

I found if I wrapped it in a Try Catch, the error went away when trying to link to it in CR Designer.  I had all my other .NET calls wrapped in a Try Catch in my first class and that is why I didn’t get this error before.  This one was not easy to figure out the conditions as to how “make things work”.  The error message was little to generic to even suggest what was wrong too.

I am still puzzled as to why a Try Catch fixed the issue with CR Designer though.  Also I would like to know if the code really was my in error or is this a bug in CR Designer.

I've attached sample code images of the error.

"Crystal Reports - " prefixed to report file name

$
0
0

When I send my report to a file printer like PDF Creator or Microsoft XPS Document Writer, I get the string "Crystal Reports - " (without the quotes) automatically prefixed to the report name I set in the property myReport.SummaryInfo.ReportTitle, i. e. Crystal Reports - myReportName.

Does anyone know a way to prevent this behaviour?

Thanks in advance.

Crystal Reports not showing report on ActionResult MVC3

$
0
0

After tryingseveral optionsI fail todeploya report andI am not gettinganyspecific error.


I am developingin VisualStudio 2010withMVC3Razor.


I havea viewto invoice

This is part of the view:

@model Models.FacturaHeaderModel
@{    ViewBag.Title = "Facturación de Compras";    Layout = "~/Views/Shared/_Layout.cshtml";    }
@using (Html.BeginForm("Guardar", "Facturas", FormMethod.Post, new { id = "factura" }))
{    <fieldset>        <div class="editor-label" style="font-size:16px;">            @Html.LabelFor(m => m.Movimiento.DescripLarga)            <div class="editor-field">                @Html.TextBoxFor(m => m.Movimiento.DescripLarga, new { @readonly = "readonly", style = "font-weight: bold;font-size:16px;" })            </div>        </div>
....    </fieldset>        <input type="submit" name="Guardar" id="guardar" title="Guardar" value="Guardar" />
}

 

This is part of ActionResult

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Guardar(FacturaHeaderModel model, FormCollection formCollection)
{            if (ModelState.IsValid)            {
..... save data.......                var reporte = System.Web.HttpContext.Current.Request.PhysicalApplicationPath + @"rpt\Factura.rpt";                var rptH = new ReportClass { FileName = reporte };                rptH.Load();                var cnn = new ReportHelper();                cnn.Connect(ref rptH); //connect database                rptH.RecordSelectionFormula = "{CtaCteCliente.CtaCteClienteId}=" + facturaId;                var stream = rptH.ExportToStream(ExportFormatType.PortableDocFormat);                return File(stream, "application/pdf");            }
}

 

For some reasonthough thereport is designedproperly andfrom the designerworking properlyand after makingseveral attempts todebug thecode to detectthat is wrongdoes not seem tobeanything unusual.

Some queries:
This error maybe caused bythe type of responseexpected byvisual studio?

Is there anyway to getcrystal reportserrorin previousversionsassomething like:

rptH.LastError

Print dialog window is not closing after the report is printed on IE10

$
0
0

Hi There,

 

we have a legacy asp.net web application that we need to make compatible with IE10.

Our problem is that when a report is printed the 'Print' dialog/status box that is popped up by the CrystalReportViewer is not closing automatically after the report successfully printed. It stays open and must be closed manually.

Not a big deal, but might be annoying for the users to close it every time .

 

If we turn on the 'Compatibility View" all works like a charm, and the 'Print" status box is closed properly after the report is successfully printed.

 

This is a legacy application that uses framesets/frames this might play role too.

 

Does anyone experienced this behavior that this dialog box is not closing automatically?

 

Any input is appreciated.

how to suppress line in pdf if pagenumber > 1 by using vb.net code ?

$
0
0

Dear Experts ,

 

I am using following query to export my report in to pdf .

 

rpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "Quotation") ... I need to suppress line if page number > 1 . For ex if total pagecount is 3 , in first page alone I need to display line object .

 

If I generate report in RPT format then I can easily achieve this by following query

 

Dim currentpagenumber AsString = BL.ViewInfo.PageNumber.ToString           

Dim nPages AsInteger = rpt.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)

rpt.ReportDefinition.ReportObjects.Item(i). obj.ObjectFormat.EnableSuppress = True ,

 

But same thing is not working when generate from PDF ,

 

Is it possible to suppress line in pdf if pagenumber > 1.


SAP Crystal reports 2013

$
0
0

hi all,

i need access to SAP crystal reports 2013.

Can any one advise ?

SAP Crystal Add-in error message

$
0
0

Hi all

 

I have installed SAP B1 version 9 PL05 and have also installed SAP Crystal Reports Version 14.0.4.738

 

I can edit a document (for example a PO) from within SAP but if I make a change and choose;

 

Add-Ins - Sap Business One - Preview in SAP B1 or

Add-Ins - Sap Business One - Save

 

I get the following message;

 

 

I have uninstalled crystal, the sap client etc.....cant find this exact message in the portal or on google.

 

Does anyone have a solution to my problem?

 

Thanks

 

Conor

Crystal Reports for Visual Studio Hangs

$
0
0

I have an ASP.NET app that runs without fail in development.  Recently the reports in production have begun to fail.  When they fail they just hang, no error, nothing in event logs.  I can only fix by resaving the report (note I don't need to make any changes).  It then works for a few more attempts and then fails again.

 

Product is WIndows 2008 64bit.  App built with VS 2010, ASP.NET C#.

 

Have installed both 64 bit runtimes and the complete VS Developer support.  Both at latest service pack (6).  No difference.

 

Tried making the report files read only.  No difference.

 

Am banging my head against a wall with this, as is my client.

 

Anyone got any ideas?

Crystal Report Login Error with Online SQL Server

$
0
0

Hello Everyone!

 

I am a programmer VB.NET + SQL Server 2008 +.

I am using crystal reports. Its working fine with local database. But when i use online SQL database to my hosting providing me to connect with SQL Server Management Studio.

With online database data work flow working fine but when view reports got login windows and ask password. I enterd password and press finished and got message Login Failed.

 

Please if any one have some solution , Share it.

 

 

Thanks

Crystal Reports 8 export troubles in Windows7

$
0
0

I have
an older application which uses Cryst 8 and we use the activeX viewer. We turned
on the export button in the viewer. The export feature works on some machines
but on others it works up to the point of displaying the window that allows the
user to choose where to save the file. This window does not open at least on
some machines. What am I missing? I am desperate any help would be appreciated.
It works on XP but not in Win7.



Software:

Visual Studio 2003/C++ unmanaged

facing error in deployment desktop application vs 2010 with CR integrated

$
0
0

Report is directly CREATED WITH database SQLOLEDB PROVIDER

CODE IN vb FORM ARE AS FOLLOWS

Public Sub giveLogin()

        connfo.ServerName = conclass.oldserver

        connfo.DatabaseName = conclass.olddata

        connfo.UserID = conclass.olduid

        connfo.Password = conclass.oldpass

        For Each cnInfo As TableLogOnInfo In Me.CrystalReportViewer1.LogOnInfo

            If cnInfo.ConnectionInfo.ServerName.ToString.ToUpper <> connfo.ServerName.ToString.ToUpper Then

                For Each connection In salchart111.DataSourceConnections

                    salchart111.DataSourceConnections(conclass.oldserver, conclass.olddata).SetConnection(conclass.newserver, conclass.newdata, conclass.newuid, conclass.newpass)

                Next

                connfo.ServerName = conclass.newserver

                connfo.DatabaseName = conclass.newdata

                connfo.UserID = conclass.newuid

                connfo.Password = conclass.newpass

                For Each tblLogon As TableLogOnInfo In CrystalReportViewer1.LogOnInfo

                    tblLogon.ConnectionInfo = connfo

                Next

            Else

                For Each tblLogon As TableLogOnInfo In CrystalReportViewer1.LogOnInfo

                    tblLogon.ConnectionInfo = connfo

                Next

            End If

        Next

    End Sub

 

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

        Me.MdiParent = Mainwindow

        giveLogin()

        Me.CrystalReportViewer1.ParameterFieldInfo.Clear()

        Dim ParamFields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo

        Dim cmonth, cyear As New ParameterField

        cmonth.Name = "cmonth"

        cyear.Name = "cyear"

        Dim cyear_v, cmonth_v As New ParameterDiscreteValue

        cyear_v.Value = cyer

        cmonth_v.Value = cmon

        cmonth.CurrentValues.Add(cmonth_v)

        cyear.CurrentValues.Add(cyear_v)

        ParamFields.Add(cmonth)

        ParamFields.Add(cyear)

        '   Me.CrystalReportViewer1.ReportSource = My.Application.Info.DirectoryPath & "/salchart11.rpt"

        CrystalReportViewer1.RefreshReport()

        giveLogin()

    End Sub

PROMPTING ERROR ON CLIENT MACHINE :  BUT RUNNING WELL IN DEVELOPMENT MACHINE

 

Failed to open the connection. Details: [Database Vendor Code:17]

Report not showing in reportviewer, just vertical grey bars.

$
0
0

I created two reports, one in Microsoft reporting services and the other with crystal reports.  I use the same dataset to pass to both.  The Microsoft report displays fine, the crystal report viewer however just displays a pattern of vertical grey bars (see at bottom).

 

My code is below:

 

         

OdbcConnection conObj = newOdbcConnection("");


conObj.ConnectionString =  @"Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\webDev\test.accdb;";


conObj.Open();


String sqlStmt = "my select statement here: removed on purpose";

           

OdbcCommand cmd = newOdbcCommand(sqlStmt,conObj);


OdbcDataAdapter da = newOdbcDataAdapter(cmd);


testData ds = newtestData();


da.Fill(ds, "CMR_testData");



// record count is showing 2 records

int rc = ds.Tables["CMR_testData"].Rows.Count;


           

CrystalReport1 oRpt = newCrystalReport1();

 

oRpt.Database.Tables[0].SetDataSource(ds);



CrystalReportViewer1.ReportSource = oRpt;


CrystalReportViewer1.RefreshReport();

 

conObj.Close();

 

 

Here is what I see:


crystal_report.PNG

 

Hopefully someone can shed some light on what I am doing wrong.

 

Thanks,

Garth


Relationships between tables can not be detected

$
0
0

Hello

 

I developed an application in VB.Net 2010 with a MySQL database. I tried to define a CrystalReport report for this application, but at the creation of this report, the relationship between the tables can not be detected.

 

Also, I have another problem when running a CrystalReport; the application demandes the connection ID and password?

 

Best Regards

ADO.NET Datasource, getting Logon Failed

$
0
0

I have worked my way through the samples and walk-throughs in the blogs and help docs on this site to create a report that is based on an ADO.NET Dataset (XML xsd file).

 

My actual data dataset is generated from a STored procedure and a command/adapter object. I then set the SetDataSOurce of the report to the dataset created from the stored procedure.

 

My DB is MySQL

 

Every time I set the reportsource of the viewer to my report document and view the report it says login failed.

 

Why?

 

My XSD is just created by hand, no DB connections. It has just 2 fields, login name and last login date. Fields are named exactly as in the DB. In fact if I comment out the line that does 'SetDataSource' for the report and just show the report with no data, just as it comes, it still says Login Failed.

 

What is happening? Why is it wanting to login to show a report that has no data other than what is defined in the xdd, which is nothing. There is no data attached to the report in design time. If I preview I just get a list of VB colours which I guess is some kind of design time placeholder.

 

I just dont know what is going on but this is putting a major project in jeopardy. I have 5 working days to get this working and deliver 20 reports. Otherwise my Customer will cancel. I moved to Crystal from a competitors product thinking it would be easier and faster. I hope I didnt make a big mistake..

 

Please can someone help me get this working so I can get going on my report designs and deliver this project

Thanks

Mark

Crystal reports displaying a blank page.

$
0
0

Hello,

 

I have a VS2010 MVC project. Created Crystal Reports and programatically used the code as below..

This works fine when running on my local machine..

 

ReportClass rptH = new ReportClass();
TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
Tables CrTables;


fileName = Path.Combine(crystalReportPath, "Test.rpt");
rptH.FileName = fileName;
rptH.Load();
rptH.Refresh();




crConnectionInfo = ReportServ.GetCrystalReportConnection();




CrTables = rptH.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in CrTables)
{
    crtableLogoninfo = crTable.LogOnInfo;    crtableLogoninfo.ConnectionInfo = crConnectionInfo;    crTable.ApplyLogOnInfo(crtableLogoninfo);
}


rptH.SetParameterValue("@p_year", pYear);


Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

return File(stream, "application/pdf");

 

Set the Test.rpt file Build Action to "Content", created a SetUp project and deployed the MSI package onto the server.

The server is a Win2003 server, where "CRRuntime_32bit_13_0_6.msi" package has been installed.

All the stored procedures and database tables are set up correctly.

 

On the click of the button the above code runs and displays a blank page..

 

Have been scouring through the forums but not able to find a solution.

 

Any help is very much appreciated..

 

Thanks

 

Please

Crystal Report Developer SDK for Visual Studio 2012 has issues

$
0
0

Hiiii

 

 

I have installed the SAP  Crystal Reports, developer version for Microsoft Visual Studio - 2012.

http://scn.sap.com/thread/3185805

 

I started having slow responsiveness from VS2012. But I managed to generate one report however my VS2012 performance was bad. Suddenly I tried to remove sub report object after deleting it's command, my VS2012 hanged. I resatred my compouter then try to open any class, or JS file , my VS2012  is not responding. I removed Crystal report developer version from my PC then my visual studio came back to work perfectly. I just want to ask VS2012 P5a is a stable version? Are they planing to update it with a new version? If not, Any suggestions for me to use Crystal Reports : do you think installing VS2008 and design the reports there separately from my web project as a good idea ?.

 

Thanks,

SAP Crystal Reports for VS2010 ReportDocument.Load() Freezes in Windows 2008 R2 x64

$
0
0

Dear All,

 

I have a problem in a Windows Server 2008 R2 Enterprise 64 Bits SP1 with a report.rpt. It freezes when is called the Load(pathName) method of ReportDocument. Others reports.rpt use the same method, they are in the same folder, and works well. This specific report works well in an another operational system too.

 

I'm using a Microsoft Framework .NET 4.0 64 Bits application in a Internet Information Services 7.5.

 

The version of Crystal installed in the server is CRforVS_redist_install_64bit_13_0_6. I already had uninstalled and installed for three times... thinking that there was any problem in the installation in the server.

 

The Report.rpt contains subreports. The subreports are shown against the data sent through dataset and parameters. In others machine with Windows 7 Professional 64 Bits with the same configuration and crystal installed, all subreports run fine with the same dataset and parameters.

 

I've checked the registry keys and try to configure anything without success. The registry keys there are:

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer]

"DataEngineName"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\crpe32.dll"

"ProcessingExtensionPath"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\ProcessExt"

"AgentLimit"="3000"

"AgentTimeoutMins"="60"

"ConnectionDirMgrProgIDs"="CrystalReports13.LocalConnMgr.0"

"DisablePrintJobCloning"="Yes"

"EnterpriseRequestTimeout(min)"="600000"

"JobSharingMaxDataAge(sec)"="12000"

"PrintJobLimit"="-1"

"PrintJobSharingTimeout"="90"

"ProcessAffinityMask"="-1"

"ReportDirMgrProgID"="CrystalReports13.LocalReportMgr.0"

"RequestWorkerThread"="500"

"ResultFieldsSortMethod"="1"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\LocalConnectionMgr]

"ConnectionDirectoryPath"="c:\\"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\ReportDocument]

"AsnycSQL"="No"

"MaxNumOfRecords"="-1"

"NumOfBrowsingRecords"="1000"

"NumOfCachedBatches"="-1"

"PushDownGroupBy"="No"

"ReportStyle"="9"

"RowsetBatchSize"="1000"

"SaveDataWithDoc"="Yes"

"SelectDistinctRecords"="No"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\RptDirMgrProgIDs]

"default"="CrystalReports13.LocalReportMgr.0"

"file"="CrystalReports13.LocalReportMgr.0"

"ras"="CrystalReports13.LocalReportMgr.0"

 

Best regards,

Jener Garcia Menezes

System Architect at Prosegur S/A

Viewing all 2556 articles
Browse latest View live


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