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

Installation Help

$
0
0

I have VS 2012 and I am trying to get the CR Developer added so I can use it within VS 2012. I have downloaded and installed several times. When I open VS, I cannot find any of the tools or options. What am I doing wrong. I called the support line and they were unable to help me and was told they have never experienced that before.

 

Help me Obi-Wan...


issue with data connectors

$
0
0

Greetings everyone,

 

I have some issues with some Crystal Reports that I'm trying to put into a Web Portal I'm working on. I'm not sure if this is the right forum, but since I'm working in VS2010 I figured I'd start here.

I have several reports that run a FoxPro exe to create a custom table first before the actual report is run. We use CR 10 and CR 2008, and the reports in question use an xBase data connector. The reason for the xBase is the fact that it allows us to have multiple instances of the report run without the table being locked, which is the case if we use ODBC. Unfortunately when I use the Crystal Reports Viewer in VS, which has the CR 2008 runtime, I get a databse connection error with the xBase data connector.. If I switch to ODBC then the report runs fine, but if I run a second instance of the report I get a "file locked" error when the exe runs and tries to update the table.

I'm not sure what to do now. I have searched multiple forums but have not found anything helpful. Anyone have any suggestions. I'm also more than willing to post any code that I'm using that may be needed.

 

Thanks in advance for the help!

 

Cheers,

 

Chris

Selection Formula Syntax

$
0
0

I figured that writing a selection formula would be pretty easy but I just can't seem to get the proper syntax.

I am Using VB.net VS2012 & CR for .Net

I am building a selection formula in code to ultimately pass to the report for filtering data.

The user will get to choose filtering data from a series of comboboxes and based on those selections I'll build the formula. So attempting to pass just one criteria doesn't work.

Here is what I'm doing (showing relevant code)

In the first combobox the user selects a SKU to filter on in cmbxSKU

 

dim cboSKU as string = cmbxSKU.Text    <== the value of the combobox is 1234

dim myFormula = "{INVEN.SKU} = "" & cboSKU & """   <= Got this syntax directly from the SAP CR Walkthrough & is the same in the SDK Developer guide

 

I pass myFormula to the frmReport

in the frmReport Load Event I set the characteristic of the viewer including

CrystalReportsViewer1.SelectionFormula = myFormula

 

However at this point myFormula evaluates to Literally {INVEN.SKU} = " & cboSKU & "   as reported by the text visualizer in Intellisense.

 

When the report runs there are not records showing. (FYI there are plenty records with SKU 1234)

 

When I force the value of 1234 into the selection formula it works as expected & returns records to report on. that formula looks like this

myFormula = "{INVEN.SKU} =  ""1234"""

 

I have attempted to use the VB syntax of

myFormula = "{INVEN.SKU} =  "" ' " & cboSKU & " ' """ 

and this evaluates to

{INV.SKU} = " '1234' "  <=== But this doesn't work

 

I've replaced the & with the + but no luck

I've reduced the Number of " (Quotes), but no luck.

So now I'm Stuck, What can i do to pass a good & proper selection formula?

Another FYI, I have no selection formula as a part of the base report.

 

Thanks

Gary

CR .NET API: Attempt to change property of group chart fails

$
0
0

I am using the CR .NET RAS API to work with chart objects in a report.

 

If the chart is in the Report Footer area I can successfully change its type and other properties with code like this:

 

   ChartObject newChartObject = (ChartObject)chartObject.Clone();

   newChartObject.ChartStyle.Type = (CrChartStyleTypeEnum)value;

 

   reportDefController.ReportObjectController.Modify(chartObject, newChartObject);

 

However, if the chart is in a Group Footer area I get an exception when I call Modify:

 

COMException: The summary data field of group chart does not exist.

 

In fact the summary field that the chart is based on is present as a field object in that same section.

 

Any insights?

 

- rick

Replace Connection on Subreports

$
0
0

I am using The Replace Connection code from this document (

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2011/09/02/when-to-use-the-replace-connection-method-using-the-crystal-reports-or-inproc-ras-sdk-for-net ), but I have found it does not change the Provider for a subreport.  And, if I try to use this same code for a subreport, the following exception is generated when I try to use the ReportClientDocument.DatabaseController.SetTableLocation forthe subreport:

"Not supported within subreports."

 

I can use the DataSourceConnections(0).SetConnection which updates ther server, database, user id, password, but I need to update the provider so it is the same as the main report. 

 

How do you do this?

Crystal Reports for VS can't use .Net Objects for a dataset in designer

$
0
0

In Crystal Reports for VS’s designer I couldn’t successfully
use “.Net Object” under “Project Data” for any new reports.  I found I had to create a DataSet object manually
that mimics my classes public properties and then load that using “ADO.NET DataSets”
option.  Then through code I was able to
use my classes GetData method to populate the report at run-rime like normal.  In the past I was able to use “.Net Object” to
get the classes public properties to use at design time.

 

 

I didn’t like creating a DataSet to mimic my code for two
reasons.  One if I had to change my class
I had to also update DataSet to refresh the definition in my report.  Two it just felt like I was coding twice.  Because of this I dug deeper.  I then created a method in my class to return
my List as a DataSet.  This was easy
enough after finding a generic List to DataSet conversion class to use.  Then through using “Create New Connection”s “ADO.NET
(XML)”, I was able to use “Make New Connection” to link to my compiled assembly
(the dll in bin), choose the class and set the “Use DataSet from Class” option
and choose my method which returns a DataSet.
Everything was fine with this solution except, when I went to compile my
project.  The dll was locked and compilation
failed when trying to copy the dll.  It
seems the designer didn’t release the dll when it read the DataSet.  I found if I closed VS and restarted,
everything was working fine.

 

So I have one question, is “.Net Object” not supported anymore?  I have a few reports that were created using
this from years ago, and they run fine and I can change them in the designer.  But when I tried to “Verify Database”,  it threw up a message stating  the table couldn’t be found and asked if I
wanted to remove it.  When I said yes it removed
the table and all the fields, which in affect erased the report.

error 1935.. during installing SAP crystal report.

$
0
0

 

I using VS 2010. but when i add a crystal report to my WPF Application, i get a page with message

"Crystal Reports for Visual Studio 2010 is a free download for adding presentation quality reports to WPF, WinForms, and ASP.Net Web Sites.

Major new features include:

64-bit runtime WPF viewer Enhanced embedded report designer Supportfor exporting to XLSX

Learn more and download Crystal Reports for Visual Studio 2010 today

Then i am trying to download and install this SAP Crystal Report version on my PC. But this error appear:


tidaaaakkkkkk.png

 

Can anyone help me?

 

 

Thanks.

uf12manager.dll crashes w3wp process

$
0
0

Hi,

 

In one of the site crystal reports server 2008 is installed.  ASP.Net web forms are used for launching the reports.  In the web server w3wp crashes frequently.  When we verified the event viewer we got the following information during the crash

 

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8

Faulting module name: uf12manager.dll, version: 12.3.0.601, time stamp: 0x4bd043f7

Exception code: 0xc0000005

Fault offset: 0x0000512f

Faulting process id: 0xadc

Faulting application start time: 0x01ce98cd4742279f

Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe

Faulting module path: C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\uf12manager.dll

Report Id: 735f2709-04c2-11e3-a051-5cf3fc7a0c38

 

Can any one help me to over come this issue ?

 

Is there any fix available for this issue ?

 

Thanks.


continuous paper-printing problems

$
0
0

I am trying to design a report (using Crystal Reports for VS2008) for a receipt to be printed on a thermal printer with continuous paper (CITIZEN CT-S651).  Now a receipt will need to have variable height according to the number of items it contains.

 

The problem is that Crystal Reports takes the page setup from those available in the print setup and all these paper sizes have a fixed length (e.g. Receipt length 80x3276mm 48c).  Thus every receipt is being printing using the full length 3276mm (irrespective of number of items) resulting in a lot of wasted paper.  

 

The printer driver has a setting "paper type" set to "Receipt" intentionally meant to avoid this problem (Receipt allows flexible paper length according to the data length to avoid waste of paper), however, even with this setting the problem persists.

 

I would really appreciate any help I can get on this problem.

Crystal report 8.5 in window 7 print icon is not diabled

$
0
0

Hi,

 

I'm using crystal report 8.5 and developed the report and invoked with API. In windows7 print icon is not enabled while previewing the report. Only one machine it is enabled and all other machine it is disabled. But same report is working fine in Windows XP. Please help

I am deploying a report to a client using Visual Studio 2012. I got error message.

$
0
0

Unable to install or run the application.  The application requires that assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first.  Please Contact your System Administrator.

 

I seems that I need to install some merge modules, Where are located? What are their names? and How?

I have seen this answer responded for other older versions of visual studio.

Crystal Report Viewer's Navigate event on code-behind triggers body.onunload

$
0
0

I found I needed to know the current page number on postback so I can restore the report to that page on a refresh. To get the page number, I added a handler to the CR Viewer’s Navigate event on the code behind to store the current page number (see code below). The issue I found is that the body.onunload event is now getting triggered. This is an issue because I keep the ReportDocument in session and remove it through in a web method call from the body.onunload. So now after adding the handler, my program unloads the document and has to reload it including pulling the data again from the db every time I press a navigate button. If I don’t have the handler on the page, the body.onunload doesn’t get triggered when I press the navigate buttons.


Protected Sub CRVs_Navigate(ByVal source As Object, ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles CRV.Navigate
     Session(“ReportViewer_PageNumber”) = e.NewPageNumber
End Sub


Is there another way to get the page number without using this event?

Where does CR for VS 2010 look for UFLs?

$
0
0

Hi

 

We are upgrading our apps from CR 8.5 to CR for VS 2010. We have a couple of ancient UFLs written in C++ that are currently being installed in c:\windows\crystal. Much to my surprise, CR for VS 2010 finds them there and is able to use them.

 

We're modifying our install to accommodate the new version of CR and we're considering putting the UFLs somewhere other than c:\windows\crystal to avoid security issues.

 

In another thread it was suggested that a UFL be put in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86 which is where CR for VS 2010 appears to put them.

 

Are there just the two locations that CR looks for a UFL - <windows>\crystal and C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86? Are there any others?

 

For the setup program, what's a reliable way to determine the actual location of the standard CR UFL directory? (For example, on a 32-bit PC it will be under c:\Program Files)

 

Thanks

 

- rick

SAP crystal report not integrated with vs 2010

$
0
0

Hello ,

I am using Windows 8 .I tried to install SAP Crystal reports for visual studio and it installed successfully.

But it is not integrated with vs 2010.It show the error after adding crystal report in vs 2010 like

"Type or namespace name Crystal Decision can't be found". This error because crystal report not added in .Net references.

Please suggest me which version or which pack is needed to install or update any additional pack.if possible please provide me link

to overcome this problem.

Print button not working, and export shows the dialog but not working when click export

$
0
0

Hi,

I need some help from you.

 

My report is working in my development machine.

 

When I move it to the production machine, all is working correctly, except this:

 

1. When click on Print button nothing happens.

2. When click on Export button, the export dialog appears, but when I select an export type and click on Export button, nothing happens.

3. When click on the Next Page button, the seacrhing next page dialog appears, but neves disappears, and never show the next page...

 

These are the simptoms i have noticed.

It seems something with JavaScript, but not sure...

Can anybody tell me what to try to solve the problem?

Thanks!


How To Draw Cross Tab crystal report from right to left.

$
0
0

Hello,

im need to create cross tab report under arabic UI and need help to draw table from right to left.

 

 

 

Regards,

Crystal Reports for VS can't use .Net Objects for a dataset in designer

$
0
0

In Crystal Reports for VS’s designer I couldn’t successfully
use “.Net Object” under “Project Data” for any new reports.  I found I had to create a DataSet object manually
that mimics my classes public properties and then load that using “ADO.NET DataSets”
option.  Then through code I was able to
use my classes GetData method to populate the report at run-rime like normal.  In the past I was able to use “.Net Object” to
get the classes public properties to use at design time.

 

 

I didn’t like creating a DataSet to mimic my code for two
reasons.  One if I had to change my class
I had to also update DataSet to refresh the definition in my report.  Two it just felt like I was coding twice.  Because of this I dug deeper.  I then created a method in my class to return
my List as a DataSet.  This was easy
enough after finding a generic List to DataSet conversion class to use.  Then through using “Create New Connection”s “ADO.NET
(XML)”, I was able to use “Make New Connection” to link to my compiled assembly
(the dll in bin), choose the class and set the “Use DataSet from Class” option
and choose my method which returns a DataSet.
Everything was fine with this solution except, when I went to compile my
project.  The dll was locked and compilation
failed when trying to copy the dll.  It
seems the designer didn’t release the dll when it read the DataSet.  I found if I closed VS and restarted,
everything was working fine.

 

So I have one question, is “.Net Object” not supported anymore?  I have a few reports that were created using
this from years ago, and they run fine and I can change them in the designer.  But when I tried to “Verify Database”,  it threw up a message stating  the table couldn’t be found and asked if I
wanted to remove it.  When I said yes it removed
the table and all the fields, which in affect erased the report.

i want to develop a CR in VS 2010 and i have allready Crystal Report 2011 SP4, is that enough?

$
0
0

hi,

 

i want to develop a CR in VS 2010 and i have allready Crystal Report 2011 SP4, is that enough? or shoud i get the Special Version for VS 2010?

 

if Need to get CR for VS 2010 , will be the Crystal Report 2011 SP4 redundant???

 

thank you,

 

Hassan

Next Button not working in Crystal report

$
0
0

Hi all,

 

In my crystal report if i have 10 pages, Initial page will be 1. when i click next button it vl go to 2. but if i click again it vl not move. (ie i cannot move after page 2 using next button.) but if i type(at the place page "2 of 10") a page no 7 and enter it will load correctly.

 

i went through the forums but i cudnt get a help. can anybody help me.

update crystal report in deployed application

$
0
0

Hi guys

 

I've created a simple database application in Visual Studio 2010 that updates a Crystal Report. Everything runs fine before deployment;

(when I update the Access database located in the Bin\Debug folder, the changes are reflected on the report which is also connected to the file at that location).

 

However, when I deploy the report (with the database added to the installation files), I can still update the database as normal, but the changes aren't reflected on the Crystal Report.

 

Can anyone help?

Viewing all 2556 articles
Browse latest View live


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