Quantcast
Channel: SAP Crystal Reports, version for Visual Studio
Viewing all 17 articles
Browse latest View live

How can SAP Crystal Reports & BOE SDK developer support help you?

$
0
0

First, it needs to be understood that there is a difference between support, consulting and teaching. Each of these is a distinct facet of software work experience. In a nut shell, support of Crystal Reports and  Business Objects Enterprise SDKs extends to helping or showing how to accomplish a specific task. Support will not debug applications, or write applications. Nor will support teach basic or advanced development skills. Those facets are better served by other groups. Consulting can be obtained through SAP Services Training is available through SAP Education.

Second, there are two ways for developers using Crystal Reports or Business Objects Enterprise SDKs to obtain help with their applications;

 

SCN Spaces

 

Note that SCN is divided into distinct Spaces, each having a Discussion (formally forum) section, a blog section and a Jive Document section Each SCN Space has an Overview describing what products that particular Space is responsible for. As an example the SAP Crystal Reports, version for Visual Studio SCN Space Overview specifies the following:

 

how can support help.png

 

It is highly encouraged that you post your query into the correct Space. The Document Forum Finder for SCNlists all the SCN Spaces and should help you find the best Space for your product. Posting into the wrong Space will at best result in slow response, usually asking that you post to the correct Space and at worst the query will be completely ignored. Though we discourage that approach. The following forums are available to application developers using Crystal Reports or Business Objects Enterprise SDKs:

 

Business Objects SDK Application Development

 

Crystal Reports, Dashboard and Presentation Design (Xcelsius) and Interactive Analysis

 

Before posting to one of the above SCN Spaces

 

Consider if the issue originates in the Crystal Reports designer (CRW32.exe). If it does, post your query to either the SAP Crystal Reports or SAP Crystal Reports - Data Connectivity SCN Space. Remember, if it does not work in the designer, it more than likely will not work in an application using any SDK.

Realize that the forums are community based. You may get an answer or not. You may get a fast response or not so fast. If your issue is critical and time is of the essence, I would highly encourage you to create a phone case. Occasionally, an issue may turn out be too complicated for the forums and creating a phone case will be a good idea. Phone cases can be created here.

 

When posting to the forums, provide enough information. See the Rules of Engagement, step 2 Asking Your Question; Provide Enough Information. Also, see the blog What do I need to do to get the fastest issue resolution?

 

Search for an answer. The SCN Spaces contain tons of great information. Use the search box located at the top right corner of each SCN Space. This search will return results for KBases, articles, wikis, blogs, sample applications and more. And when posting to the Space, don't forget to say what searches you actually did do.

 

 

Phone Support

 

Business Objects Enterprise users will typically have a support contract and are able to create phone cases at will. Posting a query to the forums is useful if time is not of the essence or if the query is regarding location of resources or simple programming concepts.
Those with SAP Crystal Reports or other "volume" products typically do not have unlimited phone support contract available to them. However a single phone support incident / case can be obtained at this link. Remember if your issue turns out to be something requiring a fix, you will be refunded your phone case.

Explanation of what CR and BOE SDK support will and will not do

 

  • Support will provide resources which would include help files, application samples, kbases, articles and more.
  • Support will help with runtime deployment issues, but can not help creating a setup project as that will be created by a 3rd party applications (e.g.; InstallShield).
  • Support will not write the application from scratch. This is consulting.
  • Support will not debug existing code. This is also consulting. However Support will determine which part of the code is at issue and may provide advice on how to best proceed or provide a small sample application
  • Demonstrating the functionality (e.g.; exporting to PDF). It is then up to the developer to integrate the working piece into their application.
  • Support will not help with applications created by a 3rd party. E.g.; if you buy software that uses Crystal Reports from Acme developments, you will need to go to Acme for support.
  • Support will not fix product bugs. These need to be reproduced by support and escalated to R&D. A bug may be accepted, postponed or rejected. Reasons for these decisions are beyond the scope of this blog.
  • However you will be informed of the decision and the reasons for it. If a bug fix is accepted, usual ETA will be about six months or more. Though recently I have seen much quicker delivery times. But I suspect this depends on all kinds of variables, from complexity of the fix to available resources.
  • Support will help with issues related to upgrades - providing that after the upgrade the system is in a supported environment. Examples of where support will not be given;

1) Upgrading of COM ASP applications from XI R2 to XI 3.1 as COM ASP is no longer supported in XI 3.1.

2) Issues with Crystal Reports XI release 2 (11.5) in VS .NET 2008. CR 11.5 is not supported in .NET 2008, only CR 10.5 and CR 2008 are.

3) Issues with out of support versions of Crystal Reports and Business Objects Enterprise. However, note that you can still post your queries regarding out of support products to the forums. I still see queries regarding CR 8.5 or more rarely even earlier versions of CR. Obviously, answers may be hard to come by, but we will certainly try.


How do you spell confusion; CR for VS, Crystal 2011, BI 4.x and the .NET SDKs

$
0
0

Up to and including Crystal Reports 2008 (v. 12.x), things were relatively straight forward. Though a bit of a review / explanation taking us all the way back to CR 10.5 will serve us well as an introduction type of thing. After Crystal Reports 200 (CR 2008), things get confusing and in this blog I want to try and remove the confusion - and frustration...

 

So, CR 10.5 - better known as "Crystal Reports Basic for Visual Studio 2008" (not to be confused with Crystal Reports 2008(!)). This was a bundled version of CR that was included for free with Visual Studio 2008. It had both 32 bit and 64 bit runtime. Now, let's skip to CR 2008 (c 12.x) as all that applies here, applies to CR XI (v. 11.x) and CR XI R2 (v. 11.5). The install of these versions of CR included the SDK for VS .NET. 32 bit only(!). However, perhaps to make up for the lack of 64 bit runtime, in addition to the Crystal Reports SDK for VS, you also got the InProc RAS SDK, which is way more functional and includes Report Creation APIs.

 

OK. We're up to CR 2008 (v. 12.x). What should the next version be? Well, version 13.x sounds just about right. And "Crystal Reports for Visual Studio 2010" (CRVS2010) is born. Note that this version, follows in the footsteps of CR 10.5; it only works in the VS 2010 IDE. E.g.; it is not a stand alone executable like CR XI R2 or CR 2008. CRVS 2010 has both 32 bit and 64 bit runtime. And it has the Crystal Reports SDK for .NET as well as the InProc RAS SDK. And it's FREE(!). All good.

 

What will the next version of CR be? How about SAP Crystal Reports 2011. What should the file versions be? Version 14.x sounds good and logical. One gotcha though; NO SDK. None. Not for VS, not for Java. Now, at this point this is not particularly bad as reports created in CR 2011 will work just fine with version 13.x runtime.

 

Right. Now let's release BI 4.x (an upgrade to Business Objects Enterprise 3.x). File version is 14.x for this product. And, it has a .NET SDK - version 14.x. All good, except for at least two gotachas:

 

  1. BI 4.x SDKs cannot be used for unmanaged applications. E.g.; reports must be run via managed applications only
  2. You cannot mix version 13 and version 14 files. E.g.; do not add CrystalDecision.CrystalReports.Engine assembly of version 13 and BusinessObjects.Enterprise.* of version 14 in the same app

 

More on point (2) below ( Mixing versions - NO, NO, NO, NO, NO ). Now, just to confuse things a bit more, what do we call CR that can work with Visual Studio 2012? How about "SAP Crystal Reports, developer version for Microsoft Visual Studio". And let's give it version 13.6.x. Oh and yes, it does work with VS 2010 also.

 

Wonder about Crystal Reports for VS 2014? Me too :).

 

 

 

Mixing versions - NO, NO, NO, NO, NO

 

In the days of CR 2008 and BO 3.x, all files were versioned as 12.x. Thus you could do something like the following:

ReportDocument.Load(myInfoObject, myEnterpriseSession)


The above is an overload that uses RAS to bridge to BOE.  It will  use the RAS server in the back-end. However, since ReportDocument is defined in the CR SDK and InfoObject / Enterprisesession is defined in the BO / BI SDK, when you move to BI 4.x, you cannot use the same code. E.g.; when migrating from BO 3.x to BI 4.x it is imperative to avoid this type of code. Remember, the 4.x runtime is only supported for fully managed scenarios and the reportdocument SDK is only supported in the 13.x runtime(!).  Therefore, the .Load overload and any BOE dependencies were removed from the 13.x runtime.

 

Just as word to a simple solution to those running into an app that uses the above; The application already has the infoObject, so most of the work is done.  To set parameters /logons to the reportdocument object, use CrystalDessions.Enterprise.Desktop.Report object(cast the InfoObject to a Report object and use PSReportFactory for the reportsource)  or ReportClientDocument  object (create ReportAppFactory from enterprisesession and create ReportClientDocument from ReportAppFactory.Opendocument (InfoObject.ID)).

 

Well, that is it. Still confused? Below is a handy dandy matrix that may help.

 

Product nameFile Version*CR SDK for .NET32 bit 64 bit InProc RAS SDK
Crystal Reports Basic for Visual Studio 200810.5YESYESYESNO
Cystal Reports 200812.xYESYESNOYES
Crystal reports For Visual Studio 2010^13.xYESYESYESYES
SAP Crystal Reports 201114.0.xNOYESNONO
BI 4.x**14.xYES**YESYESNO

SAP Crystal Reports, developer version for

Microsoft Visual Studio^^

13.xYESYESYESYES
SAP Crystal Reports 201314.1.xNOYESNONO

 

*Remember, that a File version is not the same as Assembly version

^ Crystal Reports for Visual Studio 2010 versions; 13.0, 13.1, 13.2, 13.3, 13.4, 13.5

^^ Future versions for SAP Crystal Reports, developer version for Microsoft Visual Studio version 13.6 + 0.1. E.g.; 13.7, 13.8, etc.

** Managed only

 

 

Still more questions? Don’t' forget to search for answers using the search box at the top right corner of this web page. Or, start a Discussion in this Space.

Crystal report application option unavailable

$
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.

 

CrystalReportoption_VS2010 and VS2012.png

Learnings from a recent SAP Crystal Reports .NET SDK support incident

$
0
0

Recently a rather interesting issue was escalated to me from our overseas support team. In my job as a support engineer, I always search for better ways of doing things. Thus, thinking about how this issue was handled, brought up a number of interesting points about how this issue and by extension, other issues could be handled more efficiently, saving time, frustrations and of course, money. Let's take a look at the details.

 

The issue as defined by the escalating support tech:

 

Customer is using a web service to print Crystal Reports.

The application was designed to print labels.

This was a well tested application deployed successfully to a number of customers.

On a new customer site there cropped up an issue with any and all reports (this was confirmed in an email message from the customer).

The following behavior was observed at the new customer site:

 

Send report A to the printer. Report A starts to print.

Send report B to the printer while report A is still printing.

Report A stops printing and report B starts printing until it is finished. Report A than resumes printing.

 

Let's take a look at the troubleshooting process of the escalating engineer:

 

1) Determine exact version of the CR SDK used.

2) Check the printer driver (is it up to date), check the OS, check the code.

3) Provide a simpler code to perform the printing.

3) As the customer's application was rather large, the customer was asked to create a new simple test application (it is always a good idea to approach issues with the KISS paradigm) using saved data reports (this eliminates any database connection variables).

 

Customer refused to create a new simple application, insisting on a fix, at which point the incident got escalated. Unfortunately, this was after three weeks of cajoling and pleading with the customer to do try the simple application test.

 

As I read the description from the escalating engineer and scanned all the notes in the incident it was apparent that the escalating engineer was quite puzzled and perhaps incredulous / not believing the customer was correct in his observations. There were also a few notes indication that the engineer could not believe this could be a Crystal SDK issue. I realized that this was a rather unusual behavior however my initial testing could not reproduce the issue, therefore I dove into the nitty gritty details of all communications between the customer and the engineer. The nugget? Well there were two:

 

1) In my very 1st phone communication with the customer it was determined that the issue was not with any report. The issue was with reports larger than 800 pages only.

2) There was a misunderstanding between the actual issue and the way the engineer understood it. The issue was not that the printer started to print report B. Rather, report A stopped spooling until report B finished spooling. And as the spooling of report A was interrupted, nothing was printing, leading to print slow downs...

 

This behavior was reproduced easily and contrasted with the behavior of printing non CR report files. The issue was immediately passed over to R&D for a fix.

 

What are the learnings here?

 

1) Initial support engineer - Be clear on the issue actually being reported.
2) Initial support engineer - Be open about the possibility of weird or 1st time reported issues.
3) Initial support engineer - Provide the simple application to the customer to test with.
4) Customer - Be accurate a to the actual behavior (all reports? / certain specific reports?)
5) Customer - Be open to suggestions made by support. Creation of, and sharing of a simple test application with the support engineer would have taken no more than 30 minutes, eliminating three weeks of back and forth.
6) Customer - Testing of the application with large reports would have pointed out the issue, before the product was installed at a customer site.
7) Escalated engineer - don't rely on summary of the issue from the escalating engineer. Read all notes in the incident notes. In this case, it would have saved about two days of testing on my part.

 

To summarize:
Be clear about the issue
Be open about unusual / 1st time issues
Be proactive
Be accurate in issue description
Be a team, co-operate
Be in due diligence state
Be wary of relying on issue summaries

Million+ views in 3 Years - SAP Crystal Reports, developer version for MS VS: Updates & Runtime Downloads

$
0
0
SAP Crystal Reports, developer version for Microsoft Visual Studio Updates & Runtime Downloads; April 3, 2014, 1:48 PM PST - 1,001,817 Views

 

Is this an exiting stat tor me? From my personal perspective, you bet! Why?

 

I have been working with Crystal Reports since November of 1994. And yes, I have seen much good and much bad and much boring and much exciting. I have seen friendships built working with Crystal Reports. I have seen friendships irreparably broken. I have seen Crystal Reports as part of Crystal Services, Crystal Decisions, Seagate Software, Silver Lake group, Business Objects and SAP. Through it all I believed in Crystal Reports. Believed in the people who built it, who tested it, who supported it, marketed it, sold it and more. The greatest bunch of people anyone could ever work with!

 

Over the last few years though I have seen the growth of Web Intelligence (Webi) Reporting, Lumira, Visual Intelligence and more. I could not help but wonder about the future of Crystal Reports. And this statistic once again confirms for me that Crystal Reports has always been and still is "the de facto standard in reporting". This goes for the SAP Crystal Reports Designer as well as the SAP Crystal Reports SDK for Visual Studio .NET. Some may say a view is just a view and thus not a significant statistic. But I also know that "SAP Crystal Reports, developer version for Microsoft Visual Studio" is being downloaded 1000s of times per month.

 

Add to this support for RESTful Services for Crystal Reports, BI and Webi, SAP Crystal Reports for Enterprise and I am starting to feel pretty good. It's been an interesting road to travel over the last 20 years, but I'm ready to go another 20...

What exactly is 'maximum report processing job limit' for Crystal Reports?

$
0
0

It’s been a long time since I am working with Crystal. Be it support incidents or community forums, one issue never gets old is the Crystal print engine reaching its print job limit. This issue has been discussed many times on all fronts of Crystal support.

This blog summarizes all the information and suggestions we offer to the customers.

 

So, what exactly is a Crystal Reports ‘Print Job’?

A Print Job is essentially any action the print engine has to perform while generating a report. This includes paging, drilling, zooming and so on.

Note that a print job includes main reports, subreports, and in-session report objects (e.g.; drill down, paging, searching, and more.).

 

Possible errors / issues:

  1. COMException (0x80041016): The maximum report processing jobs limit configured by your system administrator has been reached." Followed by Error “ Load report failed.”
  2. Application hangs / crashes after processing multiple Crystal reports, starts working fine after windows service or IIS restart.

 

Cause:

Crystal print engine is designed with 75 as a default print job limit. Once this limit exceeds, above issues start to appear.

Sometimes the error is self-explanatory but sometimes one has to identify the scenario that too many print jobs are getting generated.

Consider a simple scenario where a Crystal report has 75 records and 1 subreport in details section. In this case the subreport being in details section will run for 75 times, once for each record generating 75 print jobs plus one print job for main report. So running a single report with one subreport could itself generate 76 print jobs and causing the issue.

Now imagine the same report being accessed by two users at the same time????

 

What to do now?

Let’s face it, there is only one issue here, the crystal print engine is being used too extensively but it is not designed for this much amount of load.

Standalone Crystal engine is meant for light reporting needs.

 

There are few things could be done to avoid this issue for a time being or reduce the frequency of the issue but these steps are not the solution. They may or may not work at all.

1.   Adhere to precautionary measures, this means design the reports to generate minimum print jobs.

Recently I was working with a customer facing this issue while printing the report for multiple times. Opened his report and guess what, 4 subreports in details section. That report won’t last for even 20 records”.

Don't send more jobs than the product is capable of processing. So, revisit the report design.

See few suggestions here.

Improving Crystal Reports Performance in Visual Studio .NET Applications

 

2.   Use Crystal Cleanup code.

Make sure you are closing and disposing the ReportDocument object immediately when it moves out of scope. The ‘Where’ completely depends on the flow of the application.

  1. CrReportDocument.Close()
  2. CrReportDocument.Dispose()
  3. GC.Collect()

 

3.   3.   Increase the print job limit. Set it to

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

“-1” value DOES NOT work with standalone Crystal Reports. It is for OEM edition ONLY.

Set it to any definite number (possibly 250 – 300).

Remember, increasing this value results in more of a strain on your server. There is a possibility of the application start to throw random error messages making no sense at all.

 

One good approach is to cache the report object instead of sessions.

This will allow you to share the report between multiple users. Keep in mind that reports that implement the ICachedReport class will be shared among users when the database and parameter information is the same. See the CR .NET SDK developer guide for more information.

Other code change is add a try/catch around the open/load report method, if it fails then handle the job ( cache it ).

 

The truth is, we don’t have an easy answer for you. If you are facing this issue, that means you are using the standalone Crystal report engine too extensively and you need a more robust solution.

 

You need Crystal Reports Server or BusinessObjects Enterprise.

Contact sales here: 866-681-3435.

 

Related Documents.

Crystal Reports Maximum Report Processing Jobs Limit

Choose the Right SDK for the Right Task

Scaling Crystal Reports for Visual Studio .NET

VS2010 Problem With Crystal Report

$
0
0

After installing Crystal Report 'CRforVS_13_0_13.exe' without any errors, I thought my problems were solved.  I was getting the "agent.exe" error when I was installing the prior version: CRforVS_13_0.exe. I am using VS2010 SP1.  I changed the compile option to '.net framework 4.'    I can create a form and drag the the 'crystalreportviewer' control to my form. But as soon as a try and create a new crystal report from the control, VS2010 crashes.  Anybody have any solutions for this?  I am using window7 professional.

How to stop paper feeding after printing custom paper size

$
0
0

I have a report in VB.NET VS2013 that is 8.5" x 5.5" or half page of short bond, before updating to 13.0.14.1720, I can print it successfully without problem

 

Before:

 

        PrinterLibrary.PrinterLib.SetCustomPaperSize(My.Settings.ORPRINTER, "HALFPAGE")

        rpt.PrintOptions.PrinterName = My.Settings.ORPRINTER

        rpt.PrintOptions.PaperSize = CType(PrinterLibrary.PrinterLib.GetCustomForm(My.Settings.ORPRINTER, "HALFPAGE"), PaperSize)

        rpt.PrintToPrinter(1, True, 1, 0)

 

The above code prints my report using a continuous paper without a problem, but after I upgraded, to the latest version, my report is automatically printed in landscape. So I read issues in forums and found out RAS SDK to solve my automatic landscape problem

 

New Code:

 

Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument

Dim printReportOptions As New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions()

Dim newOpts As New CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions()

 

ptClientDoc = rpt.ReportClientDocument

 

newOpts.DissociatePageSizeAndPrinterPaperSize = True

newOpts.PrinterName = My.Settings.ORPRINTER

newOpts.DriverName = "winspool"

newOpts.PaperSize = CType(PrinterLibrary.PrinterLib.GetCustomForm("EPSON LQ-300+ /II ESC/P 2", "HALFPAGE"),                     CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum)

 

printReportOptions.PrinterName = My.Settings.ORPRINTER

printReportOptions.AddPrinterPageRange(1, rpt.Rows.Count)

printReportOptions.PaperSize = CType(PrinterLibrary.PrinterLib.GetCustomForm(My.Settings.ORPRINTER, "HALFPAGE"), CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum)

 

newOpts.DissociatePageSizeAndPrinterPaperSize = True

rptClientDoc.PrintOutputController.ModifyPaperOrientation(CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperOrientationEnum.crPaperOrientationPortrait)

rptClientDoc.PrintOutputController.ModifyPrintOptions(newOpts)

rptClientDoc.PrintOutputController.PrintReport(printReportOptions)

 

The above code prints in portrait now and fits in 8.5 x 5.5, but for multiple pages, it will skip the other half, as if it treats the report as 8.5x11 inches.

 

 

My problem now, is how can I print it without feeding the other half.

 

Thank you.


Design crystal report at runtime

$
0
0

Hi,

Is there possible to design report in run time. (Field definition is unknown at design time).

Thanks

Uzzal

How to use the new search on SCN

$
0
0

The title of this blog makes me cringe, even though, yes I wrote it. E.g.; I've never read a word on how to search using Google, yet I am able to do so. Unfortunately, searching SCN is not as intuitive so here are a few pointers. As part of this introduction, I'd like to say that find.sap.com is in Beta and improvements are coming. Just gives a bit of time

 

 

To start, use the search box in the top right corner:

 

search1.png

 

Use simple terms. For example in the above screenshot, if I am searching for information regarding Crystal Reports, I’d use ‘Crystal parameter’ as my initial search string for an issue with parameters. Your next screen will look like this:

 

search2.png

 

Note that the “SOURCE” is SAP Community Network. This is because the search originated on the SAP Community Network (SCN). Next thing to note is that there is a “Type” heading that includes Discussions, Documents, Blogs, Video and Pages. Apparently “pages” are actually wikis(!?). Not sure why this is not called Wiki…

 

Another confusion is the header “Asset Type”. I am not able to explain why “Asset Type” and “Type” have the same content; Discussion Forum, Collaboration Document and Blog. It is cool that “Asset Type” also contains Tutorial and Articles (Yeas I know, I know; What’s an Article?).

 

Next thing to notice is that there are no KBAs. This is because KBAs are not part of SCN (not that wikis are either, but let’s gloss over that detail). Anyhow, how do we then get KBAs? Well, in this case, to get a KBA you will have to go to Find.SAP.com and enter your search term there:

 

search3.png

 

Hit the <Search> button and your next screen will look like this:

 

search4.png

 

Notice that under the “SOURCE” heading, in addition to SAP Community Network, you have “sap service marketplace”, “Business Center”, “SAP.com” and “SAP Help Portal”.  Yeah, but where are those KBAs? Well, those familiar with “sap service marketplace” know that this is where the KBAs originate. E.g.; hit on the “sap service marketplace” link and voila:

 

search5.png

 

 

Another way to get at the KBA if you know it's number is to enter the number in the search box in the SCN Space and select "Search all of SAP" from the drop down:

 

search6.png

 

Now, if you would still prefer to use the old SCN search you can use this URL to do your searches:

http://search.sap.com/ui/?scn=#query=

 

NOTE: I have no idea how long the above URL will work, so use with care.

 

 

Our take aways are:

 

    1. It is pretty tough to get all knowledge sources by using the SCN search box.
    2. Better to go outside of SCN and do your searches on Find.SAP.com.
    3. Remember that to get the list of KBAs, you have to click on the “sap service marketplace”.

Dealing with ‘CrystalReportViewer’ control – Part 1.

$
0
0

In Crystal reports .NET or Java application development, Crystal report viewer plays a vital role and is the only control which views a Crystal report.

This blog provides few guidelines on how to use, customize the viewer and how to deal with viewer related (report viewing) issues.

 

What is ‘CrystalReportViewer’ control and how to use it?

 

The CrystalReportViewer control is used in the .NET Framework to bind to and display reports. The default CrystalReportViewer control includes UI elements to assist in viewing, saving and navigating through a report.

The  CrystalReportViewer control for Windows applications, accessed through the ‘CrystalDecisions.Windows.Forms.CrystalReportViewer’ class, and the CrystalReportViewer control for Web site, accessed through the ‘CrystalDecisions.Web.CrystalReportViewer’ class.

Note that a CrystalReportViewer control is only necessary if you intend to display Crystal reports.

For more info. Check out the ‘How Do I Use Report Viewer Controls?’ section in CR.NET SDK developer guide.

 

Including a viewer control on a win or web form is as simple as dragging it from the toolbox and drop it onto the form. If the viewer is not available in the toolbox, go to ‘Choose items’ and check the respective viewer control, win or web. If the list does not contain any viewer controls, it means CR is not properly integrated with VS. CR should always be installed on top of / after VS for proper integration. Also, CR version compatibility with VS is very important.

 

Once the control is available you could assign a reportsource to the viewer. The source is the rpt file you would want to display. (Refer to ‘Setting the report source’ section in dev guide.)

 

CrystalReportViewer properties.

The CrystalReportViewer class provides a bunch of properties for customizing the viewer control and show hide the buttons.

Properties could be either set through code or from Visual studio IDE – viewer properties.

Viewer properties in VS IDE                                                             Viewer property APIs. (Click the image to enlarge)

CRViewer properties combined.jpg

See the brief description of viewer properties in CR.NET SDK API reference guide.

These properties are mainly used for

·         The CrystalReportViewer toolbar can be removed from the viewer.

·         The buttons on the CrystalReportViewer toolbar can be added or removed programmatically.

 

Customizing the CrystalReportViewer control

Apart from setting above properties, viewer control could be customized further.

Both Windows and Web CrystalReportViewer classes provide APIs to customize the viewer.

 

Viewer customization includes -

·         Customizing Report Processing Indicator – Change image, text.

·         Supporting multiple languages with the CrystalReportViewer control – Changing Locale

·         Handling Error Events – e.g. OnError, OnNavigate events

·         Customizing the CrystalReportViewer Control with CSS – Extending the viewer style.

·         Customizing the CrystalReportViewer Control with Themes

·         Customizing the CrystalReportViewer toolbar – Show hide viewer buttons, toolbar.

All above are explained in detail with code in CR.NET SDK Developer Guide.

How to maintain aspect ratio of image in crystal report 2008 winform

$
0
0

Dear All,

 

please give your valuable suggestions to resolve my issue come in  crystal report 2008 win form. I use different size image but i want to maintain their aspect ratio.

 

thanks in advance.

c# .NET Crystal Reports Connection method for SAP Business One running on HANA

$
0
0

Hello Friends,

 

I leave this post about the connection method on a .NET c# project SAP Business One AddOn, of a report build in Crystal Report 13 and 11 who will be use in SAP Business One version for HANA, hope this will work for you like was for me.

 

best Regards

 

 

SAMPLE CODE:

 

        public static bool buildCrystalReportAlmacen(int strDocEntry,string oAlmacen,string oPrinterName, string oUserId)

        {

            bool Retorno = false;

            string strDSN = "";

            string strAccount = "";

            string strDbName = "";

 

 

            try

            {

 

 

                ReportDocument Zona_Despacho_V1 = new ReportDocument(); // se instancia el reporte

 

 

                Zona_Despacho_V1.Load(Environment.CurrentDirectory + @"\Zona_Despacho_V1.rpt"); //ruta donde se toma el archivo .rpt

 

 

 

 

                Zona_Despacho_V1.SetParameterValue("DocEntry", strDocEntry); // pasa los parametros

                Zona_Despacho_V1.SetParameterValue("Almacen", oAlmacen);

 

 

                strDSN = SBO_Eventos.Globals.strDSN; //server HANA

                strAccount = SBO_Eventos.Globals.strAccount; //usuario

                strDbName = SBO_Eventos.Globals.strDbName; //nombre de la base de datos

 

 

                #region OBTENCION DEL PASWORD Y EL NUMERO DE COPIAS DEL REPORTE

 

 

                SAPbobsCOM.Recordset oRs = (SAPbobsCOM.Recordset)SBO_Conexion.m_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);

                oRs.DoQuery(Consultas.ConsultaPwsNroCopias());

 

 

                oPws = oRs.Fields.Item("U_NX_PWSCR").Value.ToString(); //PASWORD PARA ESTA VERSION

                oNroCopias = Convert.ToInt32(oRs.Fields.Item("U_NX_NRPRINT").Value.ToString()); // NUMERO DE COPIAS PAR AESTA VERSION

 

 

                #endregion OBTENCION DEL PASWORD Y EL NUMERO DE COPIAS DE IMPRESION DEL REPORTE

 

 

                string strConnection = "DRIVER= {B1CRHPROXY32};UID=" + strAccount; //string de conexion contruido de las variables

                strConnection += ";PWD=" + oPws + ";SERVERNODE=" + strDSN;

                strConnection += ";DATABASE=" + strDbName + ";";

 

 

                NameValuePairs2 logonProps2 = Zona_Despacho_V1.DataSourceConnections[0].LogonProperties;

                logonProps2.Set("Provider", "B1CRHPROXY32");

                logonProps2.Set("Server Type", "B1CRHPROXY32");

                logonProps2.Set("Connection String", strConnection);

                logonProps2.Set("Locale Identifier", "1033");

 

 

                Zona_Despacho_V1.DataSourceConnections[0].SetLogonProperties(logonProps2);

                Zona_Despacho_V1.DataSourceConnections[0].SetConnection(strDSN, strDbName, strAccount, oPws);

 

 

                Zona_Despacho_V1.PrintOptions.PrinterName = oPrinterName; //nombre de la impresora a utilizar

 

 

                Zona_Despacho_V1.PrintToPrinter(oNroCopias, false, 1, oNroCopias); //se genera y se imprime el reporte

                Zona_Despacho_V1.Close(); //se cierra el reporte  

                Zona_Despacho_V1.Dispose(); // se libera el reporte

 

 

                Program.SBO_Application.StatusBar.SetText("Se ha generado la impresion de picking por Zona de despacho", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success);

                Retorno = true;

            }

            catch (Exception er)

            {

                Program.SBO_Application.StatusBar.SetText(AddOn_NXIDP.Properties.Resources.AddOn_Name + " Error: CrystalReports.cs > buildCrystalReportAlmacen():  "

                     + er.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);

 

 

                #region MENSAJE A USUARIO BODEGA POR FALLA DE IMPRESION

 

 

                EnviarMensajeBodega(oUserId, oAlmacen, null, er.Message,SBO_Eventos.Globals.oPedido.DocNum.ToString());

 

 

                #endregion MENSAJE A USUARIO BODEGA POR FALLA DE IMPRESION

 

 

                Retorno = false;

               

            }

            return Retorno;

        }

Submit your Crystal Reports review, get a reward!

$
0
0

Hi everyone,


I wanted to make our Crystal Reports customers on the SCN community aware of some great promotions we’ve got running right now with a few listing/review sites.

 

Basically, if you leave a detailed review of Crystal Reports on one or all of these sites, they will reward you a gift card for your time.  This is open to customers only, no partners or employees.  All reviews are vetted by the sites for authenticity before you receive your gift card.

 

The G2crowd offer is open globally. The Software Insider offer is US only.  The TrustRadius offer is global too.

 

So if you’re from the US, feel free to leave a review on all 3 sites.


Here are the details on how to submit a review and get your gift card(s)!


Review Crystal Reports with G2crowd:

Leave an authentic, detailed review and G2crowd will reward you with a $25 VISA gift card upon their review and posting of the submission. This is open to the first 40 people only, so it’s a first come, first serve offer. This is open to people from all countries.
Click here to create your review

 

 

Review Crystal Reports with Software Insider:

Leave an authentic, detailed review and Software Insider will reward you with a $15 Amazon gift card for your first review, and a $10 Amazon gift card for each review thereafter.  Once your review is screened and is posted to the site, you will receive your gift card.
This program is valid until March 31, 2016 and valid in the US only.
Click here to create your review


 

Review Crystal Reports with TrustRadius:

Leave an authentic, detailed review and TrustRadius will reward you with a $25 Amazon gift card upon their review and posting of the submission. This is open to the first 40 people only, so it’s a first come, first serve offer. This is open to people from all countries.
Click here to create your review

Visual Studio Throws Error: There is no editor available for .rpt

$
0
0

This error is thrown if you double-click a crystal report in the Visual Studio Solution Explorer.

The error is caused by a failure in the solution project file (extension csproj).   


Close your solution and the use the "Find in Files" option in Visual studio on your project folder. Search for .rpt

Below is an example;


<EmbeddedResourceInclude="Resources\mycrystalReport.rpt">

      <Generator>CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator</Generator>

      <LastGenOutput>DHAReport.cs</LastGenOutput>

      <SubType>Designer</SubType>      <==== Wrong entry

    </EmbeddedResource>



Remove the Subtype node and store the cproj file.


Open your solution and now you can open the Crystal Report directly by double-clicking the report in the solution explorer.



Can you help me with this error: "An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install "

$
0
0

Hi

 

I have created a project in Visual Studio Community 2015, on OS: 64 bit, Windows 10, and I have Downloaded Crystal Report version for Visual Studio, also the CRRuntime 64 bit.

 

My report are running on my machine, but once I publish, all the pages with Crystal Reports give me this error:  crystal report error.PNG

I have tried many solutions I have seen, online not even one is working for me, something I am missing I don't know what,

 

please, please help me.

Informe operaciones num. serie

$
0
0

Hi everyone.

 

I need some help with a report called in spanish "Informe operaciones num. serie".

 

I want to create this report in SQL Server but i dont find the logic between tables, and the virtual tables dont help a lot to my cause.

 

Could someone help me with the sintaxis of this report please. All that i wanto to know all the moves of all the serial numbers including the field "Sentido" (Entrada, Salida, Asignación, etc.)

 

 

The report in Sap Business One is the following:

 

imagen de reporte de inventarios.PNG

 

Thank you a lot and regards.

A.O.

Viewing all 17 articles
Browse latest View live


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