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

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


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.

Problem using the "go to page" functionality in the Crystal Report Viewer

$
0
0

Hi all

 

I have a problem when I try to use the "go to page" functionality in the Crystal Report Viewer.

 

My application has been developed with VS2010 using c++/cli and I have a very simple CDialog that contains the report viewer.

 

CTestCRViewer2010Dlg::CTestCRViewer2010Dlg(CWnd* pParent /*=NULL*/)

    : CDialog(CTestCRViewer2010Dlg::IDD, pParent)

{

}

 

void CTestCRViewer2010Dlg::DoDataExchange(CDataExchange* pDX)

{

    CDialog::DoDataExchange(pDX);

    DDX_ManagedControl(pDX, IDC_REPORTVIEWER, m_reportViewer);

}

 

BEGIN_MESSAGE_MAP(CTestCRViewer2010Dlg, CDialog)

    //}}AFX_MSG_MAP

END_MESSAGE_MAP()

    

BOOL CTestCRViewer2010Dlg::OnInitDialog()

{

    CDialog::OnInitDialog();

 

    ReportDocument  ^reportDocument ;   

 

    reportDocument = gcnew ReportDocument();

 

    reportDocument->Load("C:\\Lantek\\Expert\\Reports\\PUNLISTA.rpt");

 

    m_reportViewer->ReportSource = reportDocument;    

 

    return TRUE;

}

Everything seems to work properly except from the "go to page" functionality: when I change the page number in the text box and I press the enter key to go to that page, nothing happens.

 

I have tried to solve the problem handling the key press event from the CDialog, but I do not know how to force the viewer to handle the event or how to get the page number from the text box and use the ShowNthPage function of the viewer.

 

Is it possible to use one of these solutions or is there a better way to solve the problem?

 

 

 

I am using Crystal Reports for Visual Studio 2010 with SP6.

 

Thank you very much in advance.

 

Best regards,

 

Aitor

Printing to dot matrix printers

$
0
0

I have a client that uses multi-part pre-printed stationery for printing their invoices.  We have developed a VB.net application for them to use to run their operations and part of the functionality is printing these invoices.  Their printer of choice is an OKI ML5521.

 

I have designed the invoice based on the OKI printer with a fanfold page size of 13.6" x 11" in Crystal Reports 2011 and set it to use the Utility 12cpi font on the printer.  I can preview the report in the designer and print it to the printer and it comes out with the correct font, printed in high-speed draft mode.

 

However, when I print from our application, .Net changes the font and the print mode of the printer to NLQ.  As a result it is very much slower and our layout doesn't come out correctly.

 

I am using the CrystalDecisions.CrystalReports.Engine.ReportDocument object and calling PrintToPrinter(nCopies As Integer, collated As Boolean, startPageN As Integer, endPageN As Integer). 

 

My code looks something like this (simplified version):

 

oRpt.Load(sReportName)

oRpt.PrintOptions.PrinterName = sPrinterName

ConnectReport(objCon.DataSource, objCon.Database, oRpt)

oRpt.PrintToPrinter(nCopies, False, 0, 0)

I assume I need to take more control of the printer settings using the System.Drawing.Printing.PrinterSettings and System.Drawing.Printing.PageSettings, but I am not able to find much information on this.  Any help or links to resources would be appreciated

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,

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!

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.

Problem with CRReportViewer & Embedded Formula

$
0
0

i have a foruma in an embedded summary in my cross tab that is giving me an error when the report is run on the aspx crreportsviewer

but this works fine in crystal reports design application itself

 

If GridValueAt (CurrentRowIndex, CurrentColumnIndex, 2)<>0 Then

    GridValueAt (CurrentRowIndex, CurrentColumnIndex, 0)/GridValueAt (CurrentRowIndex, CurrentColumnIndex, 2)

else

    0;

 

 

 

error is:

A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind Error in File C:\WINDOWS\TEMP\ Customer KPI with Lane Detail.rpt: Error in formula . 'If GridValueAt (CurrentRowIndex, CurrentColumnIndex, 0)<>0 Then ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind

 

 

Anyone know why the viewer is giving me a problem when the report works and exports fine from SAP Crystal Reports app itself?

 

attached is a screen cap of it working in the designer and a screencap of the error in the viewer


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

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

Issues when generating report

$
0
0

Hello, i have an asp.net 2.0 web application that uses crystal reports to export pdf,xls or .doc format

everything was working fine for months, suddendly reports where generating corrupt

after the download finishes and try to open the report (in any format)

its allways corrupted, some times it doesnt even download, the download % stops at 98%.

the web application its not throwing any exception, we tried resetting app pool but hasnt worked, any ideas?

thanks.

Reading parameter default value from report using CR For VS 2010

$
0
0

Hi,

 

I am unable to get the parameter default value from the report.

 

I have tried parameterFieldDefinition and defaultvalues properties. But nowhere i can able to get default value for the parameter.

 

Also i have refered this linkhttp://scn.sap.com/thread/2036996 which talks more about this issue.

 

In that link we have the following ADAPT Number:ADAPT01582059 Set for Fix Pack 4.2 for CR 2008 and SP for CR For VS 2010.

 

This issue is not available in any of the CR For VS 2010 service pack fixed issue.

 

Is it fixed and released in any of the service pack?

 

So could you please assist us how to proceed on this issue.

 

Thanks in advance.

 

Somasekar.T

ERROR : Could not load file or assembly 'log4net'. when added reference to crystal report

$
0
0

Hi All,

 

I have a VS 2010 WebApplication. when i deployed it to server it is showing this error "Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format". when i remove reference to crystal report, it is working fine.

 

both development and  production OS are 64 bit.

 

I checked windows/assembly and the log4net version is 1.2.10.0 and i learned from search that .net framework 4.0 needs 1.2.11.0. is this the exact problem

 

please guide me to  solve this issue.

 

 

 

Thanks in Advance for you help.

 

Regards,

Binu

Another log4net issue...

$
0
0

Whenever we build, Crystal Reports attempts to copy the log4net.dll out to our build folder.  How do we prevent this in a normal, non-web project?

 

After we mark the log4net.dll read only, we get this error on a build:

 

Error     1     Unable to copy file "C:\Windows\assembly\GAC_32\log4net\1.2.10.0__692fbea5521e1304\log4net.dll" to "..\..\..\..\..\build\log4net.dll". Access to the path '..\..\..\..\..\build\log4net.dll' is denied.     Reports

 

If we allow the copying of the assembly, it breaks our database access layer that uses nHibernate.

 

How can we fix this?

 

Thanks,

Kyle

Log4Net problem?

$
0
0

We are using the crystal runtime (v13 SP1 x86) in some of our dlls. We are developing on Win 7 x64. All our apps are compiled under x86. We are using the .Net Framework 4.0

 

Recently we wanted to add log4net to our Data Tier DLL (version 1.12.11) which works and compiles fine. Any time you compile any project that uses our data tier dll you get the following warning:

 

No way to resolve conflict between "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" and "log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304". Choosing "log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" arbitrarily.

 

Please note everything still compiles just fine its just we get the warning above.

 

We having been dealing with this problem for awhile and have spent a lot of time trying to resolve it. I currently have a support case open with microsoft and really i don't think they have gave me any solid answers yet.

 

Crystal Runtime installs log4net into the .net 2.0 GAC (%windir%\assembly).

 

I had the understanding that you couldn't load a .net framework 2.0 dll from a .net 4.0 project but it looks like that is incorrect. It looks like .net 4.0 has the ability to load .net 2.0 framework dlls (via the CLR hosting api).

 

If i specifically remove the log4net (1.2.10) that crystal installed then the error goes away.

 

I have tried all of the following:

1. Put the log4net 1.2.11 (.net 4.0) in the GAC

2. Set the reference to log4net in our data dll to Specific Version = TRUE

3. Tried to add an reference hint (HintPath) to a specfic location (before we added log4net to the GAC)

 

At first Microsoft recommended doing reflection but we won't do that. We call log4net to much and using reflection for that many calls is UGLY and it would slow things way down.  They want us to now look into policy redirection which we i still need to do to see if its a workable solution.

 

So my questions are:

1. is there a way to get around this problem?

2. Can anyone delve into why the problems happening?

 

If there isn't anyway to get around this problem it seems to be a gaping hole in how SAP decided to address this. log4net is a very frequently used logging library and to make the decision to use it even when everyone who used your product seems to be a very bad decision. Maybe even they were going to use log4net they should have least built from source and renamed the dll.


CR 2010 - Could not load file or assembly 'log4net'...

$
0
0

I have installed the CR 2010 release and am attempting to create a deployment package for a web site using the full version. Upon building the deployment package, I receive the following error:

 

ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

This error has been mentioned in several threads, but without any successful solutions.

 

Has anybody found a resolution?

 

Thank you.

 

MB

How to obtain Log4net1.2.10 PublicKeyToken=692fbea5521e1304 MSIL dll?

$
0
0

Hi,

 

Is it possible to obtain a MSIL DLL of Log4net1.2.10 with PublicKeyToken=692fbea5521e1304? Our solutions use Log4net and Crystal for VS2010 and our projects run in 64-bit and 32-bit.

 

We have a potential subdeployment where Crystal and its redistributables are not required and so would like to include a 64+32bit compatible binary if possible.

 

Kind regards,

Sam

Use of the parameters panel

$
0
0

Hi

 

I am currently using VS Dev .NET but also have a licence for a full copy of CR2011 (not installed/using it yet)

 

We are moving some reports from an old VB6 system that used CR8 (I think). The app did some very complex code to dynamically build up a parameters panel and offer the user the option to select values from lists, drop downs, tick boxes etc and they were then passed into a stored procedure to generate the data for the report.

 

Looking at the 'Marketing Blurb' for CR2011 it seems it has a whizzy feature in the Parameters Panel?? I have never seen/used it so some general guidance on how it works/how to use it would be great. I have search here a fair bit and can only find a few posts relating to specific issues with the PP. No general' how tos' or step by steps. Anybody got some great links to get be going?

 

Also, can any of this be done with the VS Dev version? Or is it full CR only?

 

Many thanks

Mark

unable to add Crystal reports references to .net 4 WAP

$
0
0

hi there

I am attempting to convert a WSP to a WAP. I had already updated the WSP project to .net 4 successfully and all went well, it ran fine and things were good. but now when I am trying to add the CrystalDescisions references, they are simply not available in the reference window.

I am using VS2010 pro and win 7

I have both the cr2008 (version 12) and cr version 13 runtimes installed..

no luck though

any ideas?

thanks

nat

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 3636 articles
Browse latest View live


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