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

Crystal Report for visual studio 2012/2013 not working on Windows 10

$
0
0

Hi all,


I am using Visual studio 2012/2013 with SAP crystal report 13 SP14 (CRforVS_13_0_14). Previous I was using windows 7 and windows 8 and was not any problem. but after upgrade to  windows 10, Crystal report not working/showing when run project. Please let me know if you could solve this issue.


 


CRforVS13 only works on localhost

$
0
0

I've been trying for several days but can't find a solution.  Using VS2013 along with CRForVS I built a number of reports.  They are dynamic reports that pull from a SQL database.  After building and testing them all using a localhost I published them to my website but I get a error every time.  Load report failed.  There's a lot of info out on the internet but I think most of it pertains to older VS and older CR.  Any help would be great.

Get cross-tab horizontal pages on the same page

$
0
0

Hi there,

 

I have a report containing a cross-tab in a group header section so that there can be more than one cross-tab table in the resulting report. Any extra horizontal pages (if the number of columns exceed the page width) are always printed on the next page although there is enough space on the same page. The problem here is that the cross-tab table for the next header section does get printed on the same page, so u end up getting mixed tables:

 

Page 1:

 

Section header 1

Header 1Header 2Header 3Header 4


Section header 2

 

Header 1Header 2Header 3Header 4


Page 2:

 

Section header 1

Header 5Header 6Header 7Header 8


Section header 2

 

Header 5Header 6Header 7Header 8

 

So is there any way to force the next section always after the last section is completely printed or even better get Crystal to print the next horizontal page directly underneath the previous?

 

Many thanks in advance!

grt

Sample to launch Crystal Report 2013 from C#.NET

$
0
0

Hello,

 

In my environment, I have Visual Studio 2010 & Crystal Report 2013 SP4.

I need a sample program written in Windows Forms based C# .NET application to launch report in Crystal Report 2013.

 

Any help would be highly appreciated.

 

Thank you,

Mukesh Nagda

CR13 with SP14 - Text display problems

$
0
0

Hello everyone

 

I am new into this discussion sections of the website.. First I would like to apologize for my english, it's not my first language.

 

I am using Crystal Report with VS2013 to make my own little applications I use daily for my job !

 

Today I opened Visual Studio 2013 to edit an existing report I made like months ago and the textfield and also all the database field are showing not correctly and makes every fields size too large..

 

Check screenshots for more informations: (Sorry if its in french ) but you can clearly see the display problem.. and of course the display problem also occurs in my applications.. all reports are now under this style..

 

Screenshot_1.png

Result in application : The textfield is suppose to show "Téléphone / Fax" but since my problem appears, the word FAX is not showing anymore.

This is a basic report, but in some cases, my text/db fields are not that large.. so the display is worst than this one.

ss3.png

Retrieving the subreport record count

$
0
0

Hi,

 

We are using the SAP Crystal runtime for Visual Studio, SP 14 and we are attempting to retrieve the count of records in a subreport, but are unable to do so because the Rows.Count always returns a value greater than 0 even when no data are returned by the subreport.

 

Sample code:

 

Private Function SubreportHasData(ByVal reportDocument As Object) As Boolean

 

Dim sections As Object = reportDocument.ReportDefinition.Sections

For Each section As Object In sections

    Dim reportObjects As Object = section.ReportObjects

 

    For Each subReportObject As Object In reportObjects

If subReportObject.Kind = 5 Then

Dim subReport As Object = subReportObject.OpenSubreport(subReportObject.SubreportName)

If subReport.Rows.Count > 0 Then Return True

End If

    Next

Next

 

Return False

End Function


When checking many of the subreport object properties in the IDE, we noticed most of the message values either contained an exception message or that they are not supported in subreports.


Is there a more appropriate property to use?


Thanks.

Crystal Reports preview doesn't match printout

$
0
0

Our users are complaining about overlapping columns in their report preview, see below

crpreview.PNG

but it turns out that the printout is actually ok:

 

printout.png

Is there something we need to do to make the preview more accurate?  Thanks. 

 

Maricris Villareal

CrystalReport in VS2010

$
0
0

Hi Friends,

 

i am trying to use CrystalReport in VisualStudio 2010. for this task i have imported CrystalDecisions.CrystalReports.Engine dll(version:9.1.3300.0).

 

please find some question below:-

 

  • Am i using correct dll version in VisualStudio 2010?

 

  • I am creating ReportDocument object for loading the rpt file. now i start with build and run the solution but unfortunately solution din't run but at the same time i commented ReportDocument object then at that time solution is run successfully .

        so is there any version issue?

 

Please suggest on the above issue.

 

Many Thanks in advance.

 

Thanks

 

Rohit


Automated Crystal Reports with PowerShell - How can I connect to the database?

$
0
0

Hello folks,

I am trying to create automated reports with crystal reports using PowerShell.

So far everything has worked perfectly except one thing. I cannot update my report and it only exports the last saved version.

I don't know how to connect to the database with shell. Here is what I have done so far:

 

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.Shared')

[reflection.assembly]::LoadWithPartialName('CrystalDecisions.CrystalReports.Engine')

$report = New-Object CrystalDecisions.CrystalReports.Engine.ReportDocument

$report.Load(full path)

$report.ExportToDisk("Excel", path)

 

I don't know at what point I have to make the connection, what commands to write and so on.

 

Any help is appreciated.

 

Thank you.

Exception thrown in Crystal Report Web Viewer

$
0
0

Hi ,

 

We have integrated crystal reports with our web application for our reporting solution. While most of the reports works fine, one particular report has

an intermittent issue. When the underlying query for the report takes more than 5 minutes to execute and give a result, the crystal report viewer throws back a null pointer exception, we checked that the underlying query is submitted to the DB and is still running while the crystal report viewer has thrown and exception. When the same report, if the query executes within 5 minutes, is able to  retrieve the result and show it on the screen. Any suggestion as to how to resolve this.

The custom UFL not show in CR Additional Function List, some project show.

$
0
0

I have the same problem as Mr. Chaiwat Trakanratsanti in its issue of April 9 , 2015. Here is his text:

 

"After study 1525014 - Sample C # .NET UFL and Localization Formula function That recommend by Don Williams I follow the CRUFL_CS_ExchangeRate sample project The project build with Register for COM Interop option and add to GAC It's success to show in CR Additional Function . . . . list. Later I created a new project for my purpose . It success to show in CR Additional Function List . Aim it 's modified . Then I created new one . It fails to show in the list . My new DLL is 12 letters long CRUFL starting with prefix . My class is ComVisible and : has a Guid and implements an interface. My functions are public and return a String . I have registered DLL through Visual Studio build option and gacutil . What else am I missing ? "

 

Unfortunately, you did not answer .

 

Are there a solution?

 

Thanks a lot for your help.

 

My setup : Visual Studio 2013

Windows 8.1 64-bit

Print Custom Size Report using PrintToPrinter function

$
0
0

Hi all,

 

I am using Crystal report 13.0.2000.0 runtime v2.0.50727 with Win7 .NET Winforms application.

 

I need to print custom size labels on Zebra printer by using PrintToPrinter command. I set the following parameters in my code:

 

MyReportDocument.PrintOptions.DissociatePageSizeAndPrinterPaperSize = True

MyReportDocument.PrintOptions.PaperOrientation = PaperOrientation.Portrait

MyReportDocument.PrintOptions.PrinterDuplex = PrinterDuplex.Simplex


printPrompt.PrinterSettings.DefaultPageSettings.PaperSize.Height = 400

printPrompt.PrinterSettings.DefaultPageSettings.PaperSize.Width = 400

 

oLayout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale

 

MyReportDocument.PrintToPrinter(printPrompt.PrinterSettings, printPrompt.PrinterSettings.DefaultPageSettings, False, oLayout)

 

The problem is that the report keeps using the driver settings for the paper (6x2), and I would like to use my custom 4x4 size.

 

I know that I need to disassociate printer. But when I do so, the system refuses to use DoNotScale setting, and scales to fit the size difined in the driver. The driver itself allows to override the settings:

 

Is there a way to override driver settings and print custom size?

 

Thank you.

 

Helen.

It is possible to run CR in a pure 64 bit Environment

$
0
0

My development workstation is Windows 8.1 (64bit) and I am using Visual Studio 2013.5.

 

I started a new WinForms project.

 

I changed my environment to x64 from Any CPU.

 

I created my dataset and a CR report.

 

I added the following to my App.Config:

 

<startup useLegacyV2RuntimeActivationPolicy="true">

          <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />

</startup>

 

 

I added a Report Viewer to Form1 and Loaded my report in the Form Load Event and set the DataSource just as I always do.

 

If I run it now my app crashes.

 

I have both the CR Redistributeable 32 and 64 installed.

 

If I just change the CPU back to Any CPU it runs fine.

 

What have I done wrong?

OutOfMemoryException from VS application

$
0
0

Hi,

 

First time post, so if I err, please don't be too harsh with me.

 

We have a two programs...both written in VS2013 for .NET 4.  Both have Crystal Reports in them developed in or imported into Visual Studio.  The one program is simply a viewer...showing the user a given report on his/her device.  The other generates the report and pushes directly to a specified printer.

 

I have had periodic issues with these programs giving us the "A generic error occurred in GDI+" message.  Usually a reboot would fix this issue.  Today, however, the reboot did not rectify the problem.  So, we took a look and noticed a couple of things:

 

1) We were back several versions on the Crystal Runtimes.

2) The "Copy Local" property od the Crystal .DLL's were not set to "local".

 

So...we installed the newest version (13_0_14) of the Runtimes (both 32 & 64 bit) on the client's machine.  I also changed the "Copy Local" properties to true and republished the program.

 

Now when the client tries to print, we get the "OutOfMemory" exception.  Interestingly, on the viewer, the report is displayed....but when we hit the print button.....then....it craps out.

 

The entire error captured from my "Direct To Printer" program is attached.

 

I also looked at the versions of the Crystal DLLs imported into VS.  The Runtime Version is v2.0.50727 and the version is 13.0.2000.0.

 

Do you need anything else?

 

Thanks for your help.

 

Tom (Zeke)

error 1904 craxddrt.dll failed to register

$
0
0

I had a hard drive go bad on me so I had install a new hard drive (actuall I put in a SSD) and do a system recovery using the recovery software I created on to a Flash drive.   btw - Windows 7 Pro. 64bit

 

I've reinstalled VS 2010, I've installed the Crystal Reports for .Net Framework 2.0 for my apps that reference version 10.2.36 and they  seem to work fine.

But when I try to install CRForVS_13_0_13.exe or CRForVS_13_0_10.exe so I can use CR in my VS 2010, I get an error 1904 saying craxddrt.dll failed to register.

 

I looked at the log and it says

 

1: {E79AD088-BE17-4813-A83C-89614C57E25B} 2: {669EF439-62B2-4087-9618-9E2D2504E022} 3: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\craxddrt.dll

MSI (s) (50:10) [12:35:14:626]: WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\craxddrt.dll' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0).

 

I've done a lot of Googling but found no answers on this exact 1904 error.

 

Some have talked about environment variables causing the problem but no real explanation on how to fix it.

Some have talked about Adobe causing the problem so I uninstalled all Adobe, no help.

 

The only place I've found the craxddrt.dll is under the SAP folders, if I tell the installed to ignore the error and finish the install.

 

After 4 hours, I give up,   HELP Please

 

btw - I have installed both the SAP CR runtimes for .Net Framework 32 bit and 64 bit with no problems.  The reports run fine, just not the designer.

         I have turned off the UAC and have uninstalled my AVG anti virus software.

I am the Administrator.


Could not load file or assembly 'file:///C:\Program Files (x86)\SAP ... win\dotnet1\crdb_adoplus.dll'

$
0
0

I have seen a few solutions for this problem, (i.e. 64 bit version of CrystalDecisions.CrystalReports.Engine.dll for CR13 SP 9 version) but I suspect they are for Windows Forms Applications. I'm writing User control libraries, and none of the solutions, which usually use modifications to the app.config file to fix it, work for me.

 

I hopefully uninstalled everything from SAP this morning and reinstalled CRforVS_13_0_5.exe. I'm still getting the error.

The 'dotnet1' folder does not exist on my system.

 

I'm using VB.NET (VS 2012 with Update 4,) SQL 2014 Developer for a back end, and operating in the Windows 7 pro (x64) environment. I've set all of my apps and referenced libraries I wrote to target the 64 bit platform, and to target .Net 4.5. When that didn't work I tried .Net 4.0.

 

All of my apps and reports were originally written in VB 2005 (.Net 2.0) and are converted when I first open the solutions in VB 2012.

 

I tried creating the missing folder (dotnet1), and copied the file referenced there only to get another message saying I was using a mixed mode application. Apparently something in my assembly was using .NET 2.0. I could not find it.

 

I have been chasing this problem all week but nothing I do works.

 

I would like to target 4.5, because we are moving everything into the cloud and the other app we use, Microsoft Dynamics NAV, I think uses that framework. But I am not that particular. I  have options in that regard. However, I do want it to be a 64 bit solution.

 

Any help or suggestions will be appreciated.

How to change data source for a ttx-report in WPF-application

$
0
0

Hello.

 

I have a *.rpt-file, created in the "SAP Crystal Reports" program with a ttx-file as data source description.

For example, the .ttx file is very simple:

str1    String    25    test1

I need show this report by a WPF-application, and I want to use an "Object Collection" for filling its data.

I try chahge a data source for the report like this:

namespace WPFTest
{    public class Filds3    {        public string str1 { get; set; }    }    public partial class MainWindow : Window    {        public CrystalReportsViewer crystalReportsViewer1;        public MainWindow()        {            InitializeComponent();            try            {                this.crystalReportsViewer1 = new CrystalReportsViewer()                {                    Height = 500,                    Width = 800                };                                ReportDocument doc = new ReportDocument();                doc.Load("Report4.rpt");                var testValues2 = new ArrayList()                {                    new Filds3 { str1 = "sd133" },                    new Filds3 { str1 = "sd222" },                    new Filds3 { str1 = "sd344" },                    new Filds3 { str1 = "sd4323" },                };                string modelClassName = "WPFTest.Filds3";                NameValuePairs2 connectionProperties = new NameValuePairs2                    {                        new NameValuePair2                        {                            Name = DbConnectionAttributes.CONNINFO_DATABASE_DLL,                            Value = DbConnectionAttributes.DATABASE_DLL_CRDB_ADOPLUS                        },                        new NameValuePair2                        {                            Name = DbConnectionAttributes.QE_DATABASE_NAME,                            Value = ""                        },                        new NameValuePair2                        {                            Name = "QE_DatabaseType",                            Value = "ADO.NET (XML)"                        },                        new NameValuePair2                        {                            Name = DbConnectionAttributes.QE_SERVER_DESCRIPTION,                            Value = modelClassName                        },                        new NameValuePair2                        {                            Name = "QE_SQLDB",                            Value = false                        },                        new NameValuePair2                        {                            Name = "SSO ENABLED",                            Value = false                        },                    };                NameValuePairs2 logonProperties = new NameValuePairs2                {                    new NameValuePair2                    {                        Name = "ClassName",                        Value = modelClassName                    },                    new NameValuePair2                    {                        Name = "Internal Connection ID",                        Value = Guid.NewGuid().ToString()                    }                };                foreach (CrystalDecisions.Shared.IConnectionInfo connection in doc.DataSourceConnections)                {                    connection.SetLogonProperties(logonProperties);                }                foreach (CrystalDecisions.CrystalReports.Engine.Table table in doc.Database.Tables)                {                    //TableLogOnInfo info = table.LogOnInfo;                    TableLogOnInfo newInfo = new TableLogOnInfo();                    newInfo.TableName = modelClassName;                    DbConnectionAttributes newAttributes = new DbConnectionAttributes();                    newAttributes.Collection = connectionProperties;                    newInfo.ConnectionInfo.Attributes = newAttributes;                    newInfo.ConnectionInfo.LogonProperties = logonProperties;                    newInfo.ConnectionInfo.ServerName = modelClassName;                    newInfo.ConnectionInfo.Type = ConnectionInfoType.CRQE;                    newInfo.ConnectionInfo.UType = 5;                    table.ApplyLogOnInfo(newInfo);                                      string location = table.Location;                    table.SetDataSource(testValues2);                   // table.Location = "WPFTest_Filds3"; // Exception here                }                this.crystalReportsViewer1.ViewerCore.ReportSource = doc;                this.crystalReportsViewer1.Owner = this;                this.Grid1.Children.Add(this.crystalReportsViewer1);            }            catch (Exception e)            {                MessageBox.Show(e.Message);            }        }
}
}

But I getting an Exception like:

Failed to load database information.

Error in File Report4 10384_8240_{4CDE0A62-05A9-4CBA-8A41-B185B3A3946A}.rpt:

Failed to load database information.

Tell me please, how I can correct my code for success.

Thank you.

export to pdf and print font reduction problem

$
0
0

I have used visual studio 2010 and crystal reports 2011 to create a report which I have published to a Windows Server 2012 R2 with IS8. CRRuntime_64bit_13_0.msi was installed on the Windows Server 2012 R2 server.

 

1.  When I print from the crystal report designer:  font is as expected

2.  When I print from the web app crystalreportviewer:  font is significantly decreased (for either chrome which is exported to pdf or ie which does not appear to be exported to pdf).

3.  When I export to word from the crystalreportview and print from word:  font is very close to what is expected.

 

I have seen several posts to similiar issues.  However, changing a registry key would not apply to the Windows Server 2012.  Is this a server or client issue?  Is this a crystalreport viewer issue or an application issue?  Any suggested solutions?

 

Kind Regards,

Karen

Will application built in CR 13 SP 13 work in the machine installed with CR 13 SP 9

$
0
0

Hi,

 

We have developed our application in CR 13 SP 9 (13.0.9).

 

We are about to upgrade to CR 13 SP 13 (13.0.13).

 

We have a question here, whether the application developed in CR13 SP 13 (13.0.13) will work in the machine that has only CR13 SP 9 (13.0.9) installed?

 

We have tested this and it seems working. We need to confirm this officially before it goes to PROD, so we are raising it here.

 

 

The doubt is the

          We are always seeing the assembly reference as "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0" on both installations - 13.0.9 & 13.0.13.

 

At the same time, on seeing the properties, it shows "13.0.9.1312" & "13.0.13.1597" respectively.

 

Can anyone confirm that do we have any issue on running the application built using CR13 SP 13 in the machine that has CR13 SP 9 installed?

 

Note: We planned to ask our customer to upgrade to CR13 SP 13. But the question here is, do we need to restrict using the application itself before upgrade or they can use with existing version and in parallel, they can upgrade to latest version in near future.

 

Regards,

Guru

Save As (print) issues on web app

$
0
0

I am a support rep for a company that created an asp .net IIS web app that generates reports created using Crystal Reports (CR Runtime 13.0.14).

 

The page displays the report just fine for all users but some users are able to use the "print" button that is also generated. This button doesn't actually print but is a "save as".

When it works the expected "do you want to open or save...." dialogue box pops up, but when it doesn't, there is no pop-up and no error.

 

If we make the user who is having the issue is made a member of the local computer admin group they are able to press the print button and get the desired results, so it seems likely to be a permissions issue of some kind. For clarification, they are logging onto the same computer with the same user/pwd, just different permissions.

 

We are having issues trying to narrow down which folder needs what permissions. So far we have enabled full access to both "users" and "iis_iusrs" on both the c:\temp c:\windows\temp  and the wwwroot\application folders on the server  - no change.

 

 

Our application traps errors and this is what it is reporting

 

#ERROR   OnPrintBtnClick || Error printing summary report: Load report failed.

#ERROR   Error printing summary report(trace):    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

   at RtDuet_ARI.SummaryReportForm.OnPrintBtnClick(Object sender, EventArgs e)

 

I am not the developer, but even he is stuck so any help would be greatly appreciated.

 

Additional installed software info

Visual Studio 2010

Visual C++ 2008

Visual C++ 2010

Visual C++ 2013

.NET 4.0

.NET 4.5

Viewing all 2556 articles
Browse latest View live