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

Export to PDF - Space IN-Front of french accent character.

$
0
0

Hello,

    We have a report that add a space in-front of a french accent character (ex. éè...) with the Time New Romans fonts. The issue does not happened when I export the report from the designer but happened when I exported it from my Web Site.

 

    I have found and look at a lot of other discussions in the forum with no clear explanation of solution.

   Is there a workaround to this issue other than using another font?

 

   I have tested it with Crystal Report for Visual Studio SP7.

    In attachment I have included a report(u9b.rpt.txt) that failed with the PDF export(u9b.pdf.txt) from my web site.

 

example.png

Thank you.

Charles.


Crystal reports 10 :Many columns divided into multiple pages

$
0
0

Dear All,

 

While exporting a crystal report with many columns and A3 in MS word it divides it into multiple pages.
•We are using In build Web based report viewer to export to word. However, issue is occurring at CR designer level also.
•Version is Crystal reports 10.
•Tried removing the printer properties by selecting 'No Printer' option.

 

We need to create reports with large columns and can not affod it on A4 page size.

Issue seems to be that CR viewer is not able to pass the A3 page property to Word and adjusting it in A4,is there any way to pass that correctly?

Please let me know if there's any work-around solution to it.

 

Thanks in Advance.

 

Message was edited by: Ludek Uher

Database login prompts continuously - CR 2012 for .net/win 7&8/SQL Server /OLEDB

$
0
0

I looked at the forum but none of the steps is not resolving my problem. I have a very simple report connected to SQL Server 2012. When i try to run the report i am getting database prompt. Here is my code

 

public partial class CrystalForm : System.Web.UI.Page

    {

        ReportDocument rpt;

        protected void Page_Load(object sender, EventArgs e)

        {

        }

 

 

                            override protected void OnInit(EventArgs e)

                    {

                              //

                              // CODEGEN: This call is required by the ASP.NET Web Form Designer.

                              //

                              InitializeComponent();

                              ConfigureCrystalReports();

                              base.OnInit(e);

                    }

 

                    /// <summary>

                    /// Required method for Designer support - do not modify

                    /// the contents of this method with the code editor.

                    /// </summary>

                    private void InitializeComponent()

                    {   

                              this.Load += new System.EventHandler(this.Page_Load);

 

 

                    }

 

 

                    private void ConfigureCrystalReports()

                    {

            ReportDocument rpt = new ReportDocument();

            ArrayList al=new ArrayList();

            try

            {

                rpt.Load(Server.MapPath(@"MatchDetail.rpt"),OpenReportMethod.OpenReportByTempCopy);

                ConnectionInfo connectionInfo = new ConnectionInfo();

                connectionInfo.ServerName = "s09.winhost.com";

                connectionInfo.DatabaseName = "DB_54980_njsluggers_user";

                connectionInfo.UserID = "DB_54980_njsluggers";

                connectionInfo.Password = "Network01";

                SetDBLogonForReport(connectionInfo, rpt);

                CrystalReportViewer1.ReportSource = rpt;

               

\

            }

            catch (Exception)

            {

               

                throw;

            }

                       

 

 

 

                    }

        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)

        {

            Tables tables = reportDocument.Database.Tables;

            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)

            {

                TableLogOnInfo tableLogonInfo = table.LogOnInfo;

                tableLogonInfo.ConnectionInfo = connectionInfo;

                table.ApplyLogOnInfo(tableLogonInfo);

            }

        }

 

 

    }

Implementing search event handler causes full post back when paging

$
0
0

Good day.

 

We wanted to add functionality to the report search so we implemented a method as follows:

 

reportViewer.Search += crystalReportViewer1_Search_1;

privatevoid crystalReportViewer1_Search_1(object source, SearchEventArgs e)

{

  // Custom code here

}

 

We noticed after implementing this that the report seemed very slow when moving from page to page.  We confirmed that it is being caused by the implementation above.  We even tried making the search handler empty thinking that may have caused the issue.  It still happened with an empty event handler.

 

Using Fiddler I can see that with the implementation, the entire page is being rendered: a full post back.

 

Is there a way to prevent this behavior?

 

Thank you

ST

How I can increase the thickness of the lines of the data group Report Radar?

$
0
0

good afternoon

 

 

I'm working on a project with Visual Studio 2010, in this I installed:

 

 

"SAP Crystal Reports, version for Microsoft Visual Studio developers"

 

 

Version:

Support Pack 2

(v. 13.0.2.x)

 

 

I have successfully developed a Crystal Report Type: Radar Chart.

My question is:

 

 

How I can increase the thickness of the lines of the data group Report Radar?

 

 

I have to upgrade the version of Crystal or what is the reason that I do not find this.

 

 

Thanks in advance

Crystal Reports 14.x wiht CR Runtime (.net)

$
0
0

Greetings all,

 

We are currently running into an issue with viewer Crystal Reports whereby the output in the viewing application differs from the output presented in the Crystal Reports designer.

 

Details about report creation:

 

The reports are created using Crystal Reports 2011 (v 14.0.4.738)

The charts (bar / pie) sit as sub reports of the main report.

 

 

Details about report viewing:

 

Reports are viewed via a .NET application using CRRuntime 13.0.7 (we have tried with every version from 13.0.3)

 

 

Erroneous Output:

 

What we are seeing in the bar charts (see attached files) is:

 

1. We create a horizontal bar chart, however, the viewing application presents a vertical bar chart

2. The colors specified in the designer are not preserved by the viewer

 

What we are seeing in the pie charts (see attached files) is:

 

1. Labels falling off the screen in the viewing application

 

 

If anyone has come across this or similar issues and can shed some light on the situation, it would be greatly appreciated.

 

Thanks for the time.

Desktop Application hangs after upgrading to Visual Studio 2010 and SAP crystal reports for VS 2010

$
0
0

Hello,

I have a desktop application that was developed in VS 2005. Recently I upgraded the solution to VS 2010. It prompted me that I should install the SAP crystal report separately and I installed the Crystal Report for Visual Studio 2010 installation.

The rpt files were developed using Crystal Report 9.

 

However after the upgrade the reports fails to display. If i debug the code and step through the crystal report will display the first time i select a rpt but hangs the second time i select another rpt. I created a simple crystal report using Crystal Report 9 and it works with my upgraded application. But my original complex report does not load. It hangs saying Please wait while the document is being processed and freezes there.

 

I am using SQL Server 2008 and I have made sure that I am using SQL Server Native Client 10.

 

I use an ODBC(RDO) in my simple report and complex report.

 

I tried upgrading my complex crystal report using Visual Studio 2010 interface. This did not help as well.

 

 

Here is the code that I use to display the report. It works in the old Visual Studio.

 

 

ReportDocument rd = new ReportDocument();

          

 

rd.Load(reportPath + cmbReport.Text);

rd.SetDatabaseLogon(userID, pwd, WNPOCDataPvd.DSN, string.Empty);

  

 

                              TableLogOnInfos infos = new TableLogOnInfos();

                              foreach(Table t in rd.Database.Tables)

                              {

                                        TableLogOnInfo inf = t.LogOnInfo;

                                        ConnectionInfo connect = inf.ConnectionInfo;

 

 

                connect.ServerName = WNPOCDataPvd.DSN;

                connect.DatabaseName = string.Empty;

                connect.UserID = userID;

                connect.Password = pwd;

                         

         

 

                                        t.ApplyLogOnInfo(inf);

                                        infos.Add(inf);

                              }

          

    

            crystalReportViewer1.LogOnInfo = infos;

       

            crystalReportViewer1.ReportSource = rd;

 

 

Few issues I noticed

1) The upgraded code (VS 2010) is able to display a simple report but not my complex report. The previous version was able to display my complex report.

2) If I step through the code (debug), then my complex report will display the first time, but if I try to select a new report (from a combo box) and run this code again in debug mode it hangs at crystalReportViewer1.ReportSource = rd;.

3) If I just run the code (without stepping through) then the application hangs.

 

Thanks

Anina

searching causes top navigation to disappear

$
0
0

I am using crystal reports in Visual Studio 2010. I have a problem, every time I search for something by typing the search data in the search text box and hit enter the TOP navigation menu DISAPPEARS. Did anyone experience this? If so, is there a solution for it? Please advise.

 

Thank you

 

Hassan


Paging shows "No Errors" Message

$
0
0

Hello,

Every time I have more than 2 pages on a report and perform paging I get an inner MessageBox (from ViewerCore) saying "No errors." ("Sin errores." in spanish). This issue is comming from the first release of CR 13 and installing the newest service pack (7) doesn't solve the issue.

 

I tried to track it down with RedGate Reflector and found that the message comes from a ComObject call. I reached to CrystalDecisions.ReportSource.LocalReportSourceBase

     -> Ln 283:     lastPageNumber = formatEngine.GetLastPageNumber(reqContext);

The result is that it throws an exception with the message ("No errors"/"Sin errores"). After the MessageBox it is possible to navigate to next page

 

After some hours of trial and error I finally reproduced this issue by creating a demo and I saw that the problem has a relation with creating parameters into subreports. It's important to note that I frecuently use parameters into subreports and it's not an option not to use them (some of them are formats for dates, numbers and also the report name that should be in every report).

 

On the Demo. Some specs:

The demo shows a Master/Detail report, called Customer and Purchases. Both on Details section, because I want to have more than one Customer at a time. A detail of purchases is on the subreport showing price, amount and totals. Both report and subreport related with a subreport link and also contains the same parameter (as said before this is a must for many occasions). I also put a subreport with the header that I always use for all my reports (with an image inside).

Some time ago I had an error that indicated "invalid field name" ("Nombre de campo no válido" in spanish) that ocurred when I didn't passed the parameters with each subreport name which could contain a parameter inside.

 

How to reproduce:

  • Start the app (wait for the report to show up)
  • Try to go to the third page
  • Message box appears

 

Please tell me what could be the error. My users don't accept this "No errors." message, they think it's a joke

 

IMPORTANT: Unfortunately i cannot attach my demo, so I leave the following link

Visual Studio 2010 Waits Internally after adding new item Crystal Reports

$
0
0

Adding Crystal Report to my VB.NET project causes VS 2010 to wait internally.  I installed SP7 for CR and I have VS 2010 SP1.  I renamed my C:\TEMP to myTEMP and changed to Framework to 4.0 from client.  I cannot find anything else to try?

Correct way to Close a doc object to ensure memory is freed up

$
0
0

Hi

 

We have been developing a web reporting web site to hang off our bespoke management app and so far all had been working fine.

But recently we are getting regular errors thus

 

'The maximum report processing jobs configured by your system administrator has been reached'

 

After much Googlising it seems this is due to me not correctly closing the report document after finishing with the viewer. I read this article as the basis for my assumption

 

http://devlibrary.businessobjects.com/businessobjectsxir2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crconsdkfundamentalsscalabilityclosemethod.htm

 

My code works by using non-embedded reports (external files) that are assign (Load) to a ReportDocument object which is in turn placed in a session variable and a new browser wind is opened (using Javascript) which opens the page with the viewer on it. The page with the viewer then reads the session object and assigns the ReportDocument contained within it to the ReportSource property of the viewer.

 

I can post the code if required.

 

My question is (are)

 

1. Is this an OK way to do things generally?

 

2. Once I am on the viewer page and have assigned the session variable (ReportDocument) to the ReportSource of the viewer, how can I then safely and fully close the document to ensure the memory is freed up? As It have passed the ReportDocument over is a session variable I am guessing I no longer have access to the original object (created on a different page) to ensure it gets released properly?

 

3. Or am I on the wrong track entirely as to the cause of this issue?

 

Many thanks in advance

Regards

Mark

Crystal report for Visual studio 2012

$
0
0

In order to work on Crystal report version 13.0.5 in visual studio 2012, what am i supposed to do?

can you please help me.

I tried installing from the following link below:

 

"http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe" from this link,

 

even after installing i am not able to view the "Crystal Reports application" option Reporting template in Microsoft visual studio 2012.

as it comes in visual studio 2010. Please find the below images, respectively for VS 2010 and VS 2012.

Please let us know if any thing else is needed to be installed or any other suggestion u can give us for the above solution.

Much more memory used by Crystal v. 14 Runtime Win2008R2/64 bit versus Crystal V. 11 Win2003 server??

$
0
0

Hi

We have migrated our codebase and servers as follows:

Originallly we had:

      Crystal Reports 11.5 Release 2

     Windows 2003 Server/32 bit

     .Net 2.0 Framework

      Visual Studio 2005

NOW we have

     Crystal Reports 14 (Crystal 2011 Runtime verion 13.0.5.891)

     Windows 2008 R2/64 bit

     Net 4.0 Framework

     Visual Studio 2012

What we are seeing is, our IIS worker process w3wp.exe when running Crystal Reports v. 14 runtime is using two to three times more memory than Crystal Reports v. 11. The amount of memory used appears to correlate directly to the number of pages when producing a .pdf.

This means to support our existing reports and user base we need servers with two to three times the available memory.
Is this a known issue? Are there any settings or code changes we can make to mitigate the issue?

Steven Fisher

Error with windows server 2008 r2 and SAP runtime

$
0
0

I have an msi installer that uses 13.0.7 runtime merge modules and application works great on windows 7, but on windows server 2008 r2 I get following error. This is a windows forms application using .net framework 3.5 its 32bit app

Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll.

STACK TRACE:
CrystalDecisions.CrystalReports.Engine

SOURCE:
   at CrystalDecisions.CrystalReports.Engine.CRPE..cctor()

TARGET SITE:
.cctor

Crystal Reports issue after MS Updates on Windows Server 2012

$
0
0

We have a web application written in C# with Visual Studio 2012 (framework 4.0).  There is a simple Crystal Reports in that application using runtime version 13.0.2 (64bit).  This report has been running fine for about 2 months.  After one of our maintenance weekends when some Microsoft updates were applied the report stopped displaying.  There are no errors thrown or shown in the event log.  The report window pops up and just stays there.  Nothing is ever displayed.

 

We rolled back all of the updates except for one (KB2884256).  There appears to be no way to uninstall that one.

 

Has anyone come across this issue?

 

I've unistalled the runtime and reinstalled with no help.  I've even tried to install ever version from 13.0.2 up to 13.0.7.

 

This same exact codebase is running fine, with the report displaying on a Windows 2008 R2 server.

 

If there is any other information needed, I'll be happy to post.

 

Thanks


Runtime object suppress formula

$
0
0

I would like to set the formula associated with the suppression of a field object. In design time you have a suppress check box and a formula. At runtime I use;


     objReport.ReportDefinition.ReportObjects("somefield").ObjectFormat.EnableSuppress = True

 

to access the suppress true\false. But how do I set the formula?

Report Picks the Wrong Paper Type When Viewing or Printing

$
0
0

I'm developing an in-house report viewing program in C# with Windows Forms, primarily using the CrystalReportViewer.

My development setup is Visual Studio 2012 Professional with Crystal Reports 13.0.7.

 

Reports are created by management personnel, then uploaded to a server. All office employees can then open the reports in our program.
One report is created with a custom paper size - 10" x 13" envelope.

 

Unfortunately, when opened in the Viewer, the report is somehow modified to be on letter - 8.5" x 11" paper. The envelope as a paper size is definitely installed on the computer opening the report. This isn't actually a problem for viewing the report.

 

However, I would like to print the report (to the default printer and on the envelopes) with only one button press - that is, without a print dialog. I have a form with a "Print" button, which takes parameter values before the Viewer form opens. For now, I have to open the Windows print dialog and get the user to select the custom envelope in order to print correctly.

 

I have attempted to print programmatically using both ReportDocument.PrintToPrinter (CrystalDecisions.Engine) and PrintOutputController.PrintReport (RAS).

 

PrintToPrinter either tells me that I have an invalid combination of arguments (Scaling and DissociatePageAndPrinterSize), or else the code executes properly just as the printer complains that it does not have letter-size paper in the manual feed (where the 10" x 13" envelopes are).


PrintOutputController seems to work at first, but then the report prints on letter-size paper.


In both cases, I can tell that the envelope as a paper size is being copied from the printer's size enumeration.


Is it possible to print with a custom paper size without a print dialog? If so, how do I accomplish this?

Could the first issue causing the second?


EDIT:
I had asked a similar question in the past, and received an answer. Unfortunately, the solution initially seemed to work, but after lots of testing I have come to the state described above.

C# winform + crystalreportviewer to export HTML format ?

$
0
0

Hi,guys.

  I create a winform app with a crystalreportViewer[cr dev for vs 2012], and i found CR can export many formats,like pdf,word,excel.

  But I can't find "HTML" format. Although I know we can export HTML in the editor environment's preview mode, but my winform app can't export.

 

  What should I do?Many thanks!

 

Message was edited by: Ludek Uher

How to get Crystal Reports Editor in Visual Studio 2013 Preview?

$
0
0

In Visual Studio 2005, if I double-click a *.RPT file in Solution Explorer, the file opens in the Crystal Reports editor.
In Visual Studio 2013 Preview, if I double-click a *.RPT file, it opens in Notepad.  How do I get it to use the Crystal Reports editor again, please?

There must be at least part of Crystal Reports in Visual Studio 2013 Preview, because when I run the program it is able to view Crystal Reports, I just can't edit them!

Thanks and RICKgards
Rick Raubenheimer

Add control (button, image) to the CR viewer toolbar (2010) (.Net)

$
0
0

I used CRforVS_13_0_4 for VS2010. Now, I want add button or event handing print for CR viewer toolbar (2010) (.Net).

 

Help.

 

Message was edited by: Tuan Thanh

Viewing all 3636 articles
Browse latest View live