Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Barcode not shown while export to PDF

$
0
0

We have web applications developed in ASP.NET and C#. we are use Crystal Report for Visual Studio 2010 for our reports (version 13.x). We have barcodes in some of our reports. we are using IDAutomationHC39M. Recently we upgrade our server to Window server 2008. After the server upgrade, we are not able to print the barcode when we export it to PDF. its just shows the string instead of barcode. we can see the barcode in the report before we press "print". But it shows the barcode in my development machine which is running on Windows 7.

 

Pls Help. We are stuck with this because couple of critical reports are not able to print barcode.

 

 

Regards and thanks

krishna kumar


SAP Crystal Reports for Visual Studio 2012 availability

$
0
0

I would like to know if there is any roadmap regarding the availability of SAP Crystal Reports for Visual Studio 2012.

How to programmatically convert .rpt 4.6 to current .rpt?

$
0
0

Hello!

 

We got several Crystal Report rpt files created with the designer from Visual Basic 6.0 and bound to Access 97 (Jet 3.6) databases. In our VB6 application we use the API of the Crystal Report Engine (CRPE32.DLL) to load, print and show such reports onscreen. This works fine, even in Windows 8

 

When I load such a report file into Visual Studio Prof 2010 then I can see the report in the integrated Crystal designer and can preview it, modify it and such. Once I save the report it gets converted to the new report format, or when I save it to a different filename then the new report file is in the new format - even if I dont make any changes at all. Just open it, and save it-as with a new name. All great, fine and dandy.

 

Then I put together a minimal vb net application, consisting just of two forms. Form1 has a button to create a new Form2 window and show it. From2 contains a CrystalReportViewer named RView and the window state is set to maximized. In the Load event I create a new ReportDocument, then .Load the report and then bind the document to the CrystalReportViewer RView.ReportSource.

 

The vb net application properties contain the references to the Crystal Report assemblies, is set to x86 CPU, and compiles without error or warnings.

 

The database file is located in C:\Temp, the report file (version 4.6) is located there as well.

 

When I run the application and use the new report it works.

 

When I run the application and use the old/original/4.6verion report it fails with a "can load report" error exception (exception.txt).

 

I found several instances of this error on the net but no solution for me so far, or nothing that helped me to track down the problem. It is not an access violation problem, I also ran Process Monitor in the background and saw that the report file itself was loaded successfully by the process. I dont have anything fancy in this particular report, there is no report selection formular, it doesnt need any parameters and has no linked tables. Jet/DOA access works fine.

 

So I would rather like to know if it is possible to programmatically convert these old 4.6 reports "on-the-fly" to newer/current rpt format before handing them to the ReportDocument.Load method. Or can I set some properties of the report document (or the report engine or other entities) before loading the report, to give it more leniency towards the 4.6 version report file?

 

Thank you for your information,

regards

Philipp

SAP Crystal Reports Version for Visual Studio 2012 availability

$
0
0

I would like to know when SAP Crystal Reports version for Visual Studio 2012 will be available. We are planning to migrate all our applications to VS 2012 and Crystal reports is essential to us.

Report scrambles output on x64 but works fine on x86

$
0
0

We are experiencing a problem where the report generated has scrambled groups, details, etc when it is run on a x64 machine.  The application that triggers the report is a VS2010 AnyCPU Windows Forms application.  If corflags is used to force 32bit on the application the report shows just fine.

 

The report was created via Visual Studio.  We do not have any separate Crystal Report tools or stand alone report generators.  The report is passed an ADO.NET dataset as its datasource.

 

The following is a matrix describing the test environments used to narrow the problem to x64:

 

OSCrystal RuntimeResult
Windows 7 x8632bit_13_0_3.msi (1)displays correctly
Windows 7 x6464bit_13_0_3.msi (1)displays incorrectly
Windows 7 x64 with Visual Studio 2010 running app in debug

Support Pack 3

(v. 13.0.3.x) (1)

displays incorrectly
Windows 7 x86CRRedist2005_x86^^ (2)displays correctly
Windows 7 x64CRRedist2005_X64(Intel)^^ (2)displays incorrectly
Windows XP x86 with Visual Studio 2005 running app in debug

CR for VS 2005

- SP 1 (2)

displays correctly

 

(1) - reference from http://scn.sap.com/docs/DOC-7824

(2) - reference from http://scn.sap.com/docs/DOC-27942

 

Is there something in the x64 runtime that is known to cause the report to mismash a dataset with multiple tables data?

Logon failed.Failed to export the report. Error in File .rpt: Unable to connect: incorrect log on parameters.

$
0
0

Hello,

 

I am using some Crystal Reports in my web application and exporting them as PDF file. The files are developed in Crystal Reports 13_0_2 for Visual Studio 2010. After deploying on server, all reports are working fine expect one.

 

At the time of export, it is giving following error message:

           Logon failed.Failed to export the report.

           Error in File testing {F282207C-64DC-43E3-8EB8-562E7FB9643E}.rpt:

           Unable to connect: incorrect log on parameters.

 

For reports I am using XML file as datasource and passing connection through following code.

 

            PropertyBag logonInfo = new PropertyBag();

            logonInfo.EnsureCapacity(1);

            logonInfo.Add("XML File Path", Server.MapPath("sample.xml"));

 

            PropertyBag attributes = new PropertyBag();

            attributes.EnsureCapacity(5);

            attributes.Add("Database DLL", "crdb_adoplus.dll");

            attributes.Add("QE_DatabaseType", "ADO.NET (XML)");

            attributes.Add("QE_ServerDescription", "NewDataSet");

            attributes.Add("QE_SQLDB", true);

            attributes.Add("QE_LogonProperties", logonInfo);

            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo connectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();

            connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;

            connectionInfo.Attributes = attributes;

 

 

I don't get the issue, all reports are same and other reports are working fine, I am able to download them as PDF file except one report. What should I do, any idea?

 

Regards,

Namrata

Left alignment is generating extra space in exported pdf.

$
0
0

Hello Friends,

 

I am using Crystal Report 13 (SP 2) for Visual Studio 2010. I have crated a CR and exported it as PDF. There is a field in my CR that contains data for approx 2 or 3 paragraphs. I have set alignment of that filed to Left. The text of that field was looking fine in preview. But in exported pdf file it contains extra space.

 

Please see below image for reference:

align.png

 

Right and center alignments are also generating extra space, and justified is not suitable in my report.

 

I followed many posted regarding the issue on this forum, but did not find them helpful. Please help me and guide me, what should I do to resolve this issue.

 

I will be very thankful to you.

 

Regards,

Namrata Mathur

CRVS 2010 Click-Once deployment / installation

$
0
0

We have our app working with CR 13.0.4 as long as we go to each PC and install the redistributable on the PC.  Our app is distributed via Click-Once however, we cannot get Crystal Reports to distribute with the app through Click-Once.  We noticed that there is a Click-Once set that can be downloaded and have done so but we are struggling to determine what we need to do with it after we unzip it.  We would like to have it so that we do not have to include all the CR .dll's in our application's Application Files with a Publish Status of "Include" so that it doesn't take so long to Publish.

 

After we download the CRVSfoClickOnce zip file, unzip it... what and how do we include it in our application's Click-Once process so that it uses those files?  Will this make the process go quicker or are we going to have to "Include" those, too?

 

Thanks, in advance, for your assistance!


How to Draw cross line ?

$
0
0

Dear Friends ,

 

Is it possible to draw a cross line in crystal report . Please check my image file , i need to draw like this .

MaxiCode barcode font from IDAutomation does not print properly in CRVS2010 SP 4

$
0
0

We are evaluating the MaxiCode Barcode font from IDAutomation.  When I create a report using this font, the report previews fine but the barcode appears incorrectly when printing to a printer.

 

Originally when I used CRVS2010 SP1, the printout actually looked worse.  With SP4 the appearance has improved, but the horizontal positioning of the bar code elements are incorrect.

 

The Field object has the Horizontal Alignment set to Left (originally set to Default) and the Font is 6 points, 6 points, regular style.  Character spacing exactly is set to 0 pts.  Paragraph Line Spacing is set to Multple of 1 times normal.

 

When this barcode is used in Word the data prints as expected.

 

This is how it looks in crystal reports viewer.

MaxiCodeTest - Crystal Reports Preview.png

 

This is how it looks after printing to a printer

 

MaxiCodeTest - Crystal Reports Output.png

The IDAutomation MaxiCode font can be downloaded from http://www.idautomation.com/barcode-fonts/2d/maxicode/download.html

 

Any help or thoughts would be greatly appreciated

Crystal reports for Visual studio 2010 export to xls throws an error when having subreports

$
0
0

Hi,

 

I'm using Crystal Reports for Visual Studio 2010 (i have the latest version 13_0_4 )

I came up with a problem that i've never had before this update.

Reports that include subreports cannot be exported to xls format (excel 4.0 worksheet)

It throws a runtime C++ unhandled error and application is forced to close

( in function ExportToDisk )

Does anyone have any idea  ?

Prototype.js and CrystalReports conflict

$
0
0

Hi,

 

I have Visual Studio 2010 with Crystal Reports 13.0.2000.0 installed on a Windows 7 machine.  For testing purposes, I've gone up to the current 13.0.5 version, as well as all versions in between.  They all give me the same result, described below:

 

I'm having the same problem as this person in a thread dated back to 2010 with no apparent answer: http://scn.sap.com/thread/1785719

Whenever I include the prototype.js file on any page that has a CrystalReport, the page fails to load and I receive a javascript error stating "Object doesn't support property or method 'getHTML'". It comes from this function, which I cannot find anywhere in my project (I've bolded the line that errors):

 

function TreeWidget_getHTML(){

     var F=this,E=F.sub,A=E.length,B=new Array(A+3),C=0;B[C++]=F.beginHTML()+'<span id="treeCont_'+F.id+'"  >';

     for(var D in E){

          B[C++]=E[D].getHTML(F.initialIndent,D==0)

     }

     B[C++]="</span>"+F.endHTML();

     return B.join("")

}

 

If you ignore that error, you get this next error stating "Unable to get value of the property 'style': object is null or undefined".  It comes from this function and again I've bolded the line that errors:

 

function Widget_init(){

     var A=this;A.layer=getLayer(A.id);

     A.css=A.layer.style;

     A.layer._widget=A.widx;

     if(A.initialHTML){

          A.setHTML(A.initialHTML)

     }

}

 

Both errors appear in the file "AllInOne.js" that just seems to combine all the javascript of the application into one giant file.  But again, I can't find these functions in any javascript file I'm including in the project so I'm not even sure where they are coming from.

 

Anyone have any ideas?  I've been on this for three days, multiple uninstalls, reinstalls, version upgrades, etc.  I've gotten no where.

New v13 SP5 might not update API dll files in Program Files

$
0
0

API dll files/assemblies are installed to more places:

- GAC MSIL, the non 64-bit versions

- GAC AMD64, the 64 bit versions

and besides that:

"c:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\"

 

The last one where I grabbed these from so far, I have SP4 installed, but now I noticed that as I installed SP5, it didn't update these dlls in the Program Files. I could still dig them out from the GAC, but maybe that's an issue with the installer and/or the fact that I had SP4 installed too. I wonder if it can cause any trouble.

 

Anybody experienced that?

 

OS: Win 7 x64 latest

Crystal 10.5 SDK, 13 SP4 SDK, 13 SP5 SDK

Crystal Reports prints to default printer no matter what

$
0
0

We have a .NET/C# application and we upgraded from Crystal v10.2 to v13 recently.

With the v10.2 we used the .NET API. After upgrade we experience a problem: no matter how I we to set the printer name (to the selected printer by user) before printing Crystal prints to the default printer. There are strange exceptions, for example mostly I can print to my local "Microsoft XPS Document Writer", so somehow that can override the stubborn behavior (but not always!). When I try to print to my local "Send to OneNote 2010" printer or other printer however, the report is printed to our default network printer for sure.

When I debug our code with Visual Studio 2012, I can clearly see that:

1. With .NET API: the Crystal ReportDocument object's PrintOptions object's PrinterName property is an empty string, and when I try to assign the desired printer name (like "Send to OneNote 2010"), it simply ignores my try. This is even true if I try to manipulate the object in the debugger or in the Immediate Window.

2. I tried the RAS API too. I can query the RAS object (which has the type of CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument) from the .NET ReportDocument, I guess the .NET API just wraps around the RAS objects. I see that the PrinterName is empty there too. I try to manipulate it through the PrintOutputController, like:

boReportClientDocument.PrintOutputController.ModifyPrinterName("Send to OneNote 2010");

but that try fails either.

 

About our reports (.rpt files): we should have the "No Printer" checked in all of them (we have like 300 reports in our apps). Now it seems that some of them doesn't have that set, but in those cases changing that would cause problems with our clients. The editor we use doesn't show the "Dissociate Formatting Page size and printer" checkbox in "File/Page Setup".

side by side installations

$
0
0

Dear all,

On my pc I have installed:

 

  • VS2008 (for Window CE projects)
  • VS2010 (latest version supporting ms setup project)
  • VS2012 (used in new project)

 

I have written some SAP B1 addons, so for reporting I use Crystal Report 2008, which works also with VS2008. Now I need reporting for  new  VS2012 projects, and I would like to install Crystal report 13 for visual studio.

 

I cannot remove CR 2008 because my SAP B1 addons are still live.

 

So, my question is if someone has a side by side installation (working) of CR 13 for vs and CR2008. I think the new installation should work with vs2010 and vs2012 but should not substitute CR2008 in VS2008.

 

Bests Regards

Marco


Crystal Reports Windows Server 2008 ORA-12154: TNS:could not resolve the connect identifier specified

$
0
0

Hi,

 

I can't connect my report and the error showed is:

 

ORA-12154: TNS:could not resolve the connect identifier specified

 

But, other App in the same environment could connect withou problems. So, the Oracle Client is working fine and TNSNAMES are well configured.

 

In my dev machine I can connect the same database without errors. I don't know what could be different about the environment.

 

#######################

Dev pc

- Windows Enterprise 7 32 bits;

- SAP Crystal reports version for Visual Studio 2010 ( CRforVS_13_0_4 );

- Oracle client 11;

 

Server configuration is:

- Windows Server 2008 Standard SP2 64 bits;

- SAP Crystal reports runtime engine for .Net Framework 4 (64-bit) ( CRforVS_redist_install_64bit_13_0_1 );

- IIS 7.0;

- .Net Framewor 4.0 Integrated;

- Oracle Client 11;

 

#######################

 

Am I missing some driver?

 

Thanks,

Andrew Paes

Crystal Reports Viewer Windows 8 XAML Control

$
0
0

Are you planning publish a Crystal Reports Viewer Windows 8 XAML Control for create a Windows Store application?

Connect Crystal Reports in VS 2012

$
0
0

Hello Guys

 

i'm trying to connect to a Crystal Report document with the follow code:

 

               oReport = New ReportDocument()

                oReport.Load(pathrldc)

                 oReport.DataSourceConnections.Item(0).SetConnection(sServerName, sBd, sDBUserID, sDBPwd)

               

But it just shows the exception that cann't connect to a database, if I try to use this code in VS 2008, it works ok, I also try to set the connection in every table but doesnt work

 

               oReport = New ReportDocument()

                oReport.Load(pathrldc)

 

 

                oReport.DataSourceConnections.Item(0).SetConnection(sServerName, sBd, sDBUserID, sDBPwd)

                oReport.DataSourceConnections.Item(0).SetLogon(sDBUserID, sDBPwd)

                oReport.SetDatabaseLogon(sDBUserID, sDBPwd, sServerName, sBd)

 

 

                Dim crTableLogOnInfo As TableLogOnInfo = New TableLogOnInfo()

                Dim crConnectionInfo As ConnectionInfo = New ConnectionInfo()

                Dim crDatabase As CrystalDecisions.CrystalReports.Engine.Database

                Dim crTables As CrystalDecisions.CrystalReports.Engine.Tables

                crConnectionInfo.ServerName = sServerName

                crConnectionInfo.DatabaseName = sBd

                crConnectionInfo.UserID = sDBUserID

                crConnectionInfo.Password = sDBPwd

                crConnectionInfo.Type = ConnectionInfoType.SQL

                crConnectionInfo.IntegratedSecurity = False

                crDatabase = oReport.Database

                crTables = crDatabase.Tables

 

 

                For Each crTable As CrystalDecisions.CrystalReports.Engine.Table In crTables

                    crTableLogOnInfo = crTable.LogOnInfo

                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo

                    crTable.ApplyLogOnInfo(crTableLogOnInfo)

                Next

 

 

                'oReport.SetParameterValue("DocKey@", sDocumento)

                oReport.Refresh()

 

 

                exportOpts = oReport.ExportOptions

                exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat

                exportOpts.FormatOptions = pdfFormatOpts

                exportOpts.ExportDestinationType = ExportDestinationType.DiskFile

                diskOpts.DiskFileName = pathrldc & "Factura_" & sDocumento & "_" & Now.Date.ToString("ddMMyyyy") & "_" & Now.ToString("HHmm") & ".pdf"

                exportOpts.DestinationOptions = diskOpts

                oReport.Export()

 

 

 

 

Is needed to set up a new property to connect to DB

 

 

Regards

 

CM

Print date on top margin ?

$
0
0

Hi i am using Visual Studio 2010 and CR Version=13.0.2000.0 , I am Designing Some Pre Printed Reports , i want to print the DATE in Top Right Margin.

 

I set my Page setup margin as ZERO in (left,right,top bottom), But still i cant able to catch TOP Margin .

 

I am getting 1 cm blank space in Top Margin .

blank report on iis8

$
0
0

I have a web app in framework 4 with visual studio 2012, when I run the app with visual i can see the Report, but when I public in IIS 8 , the report dont show, is blank.

Configuration IIS?

Configuration web.conf?

What a need add

 

Thanks you

Viewing all 3636 articles
Browse latest View live


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