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

Unable to snap to any guideline?

$
0
0

This is similar to Unable to snap to horizontal guidelines

 

After upgrading to VS2012, update 4, I can no longer snap any object to a guideline. Snap to grid works, but not guidelines. This is a major drag (no pun intended) as I use guidelines a lot.

 

Is there any way to fix this?


Web Crystal Report not working after period of time

$
0
0

Hi

 

I have had a problem for a long time now on one of our web servers, it's becoming more of an issue lately due to a web site using Crystal more. The problem is that the Crystal Report Viewer does not load after a few hours. If I re ship the main DLL into the Bin folder for the site, then something gets 'reset', and hey presto, Crystal starts working again.

 

The problem would even arise with a basic CR, with just one Textfield on it (i.e. not show)

 

Web server is 32 bit Windows Server Web Edition SP 2. Asp.Net project built in VS 2012 against .Net 4.0.

 

Anyone have any ideas?

 

Many thanks,

 

Julian

Crystal Reports 2008 with an XSD

$
0
0

Good morning,

 

I have an application that I am supporting. The process in which we use is this:

We design the report in CR 2008. We generate the XSD file in VS 2008 (stored procedure). We use the ADO.NET connection and map to the XSD file. This has worked flawlessly up until now.

 

I have CR 2008 12.4.0.966. The issue is that the Parameter is not being seen in the XSD file. If I look at the code behind it is indeed there. If I use an OLE or ODBC connection rather than the XSD, the report generates fine.

 

The problem lies in the binding of the XSD and CR. I am at a loss.

 

I am not sure if an update to CR2008 caused an issue, a VS 2008 update or something entirely different.

 

Has anyone come across this?

 

Thank you,
T

Crystal Reports rendering 'BarCode' to a PDF file

$
0
0

Hello,

We are using crystal reports 2010, runtime version, SP1 (Crystal reports for Visual Studio). We have a problem with the 'Bar Code' rendering to a PDF file. With the Barcode font  (3 of 9), printing is fine but when Crystal renders to a PDF file, it enlarges it and makes it not fit on the page correctly.

 

Any idea, how we can resolve this ?

 

 

Thanks,

 

Amit

Custom vb.net application won't print to specific trays

$
0
0

I have a vb.net application built in vs2005 that is used to print crystal report documents I have custom buttons setup so that reports auto print to a specific printer and tray the reports were built using crystal reports developer 11.5.12.1838.

 

This program works great in windows XP 32bit but I would like to install the application on a windows 7 x64 workstation and now the same application doesn't always print to the correct tray some documents will print to the correct trays but some don't. I use the RawKind to tell which tray enum to use and it just doesn't work for some trays and I'm getting frustrated.

 

Thanks for any help

Crystal Reports Export Issue

$
0
0

Hello,

I am experiencing an issue when I export a report where the formatting gets very strange.  I am attaching an image, but extra letters are being added to words that are not in the report itself and do not appear if the report is exported in a Word format.

 

We are using Crystal Reports runtime x64.

 

Any issue on what might be causing this issue?

Crystal X format issue when exporting to RichText

$
0
0

I have developed a CR X report via VS 2010. My application is calling a component which utilizes the CrystalReports.Engine ver 12.0.2 to print the report to screen. When I export to RichText, all of the formatting is lost and the report becomes almost unusable.

 

Here is a screen of the report in dev mode. The fields are formatted as Justified..

rpt_dev.jpg

 

Here is a screenshot of the output:

 

rpt_prod.jpg

 

 

I feel as though there may be a property that I am not setting on the report which is causing this behavior...any thoughts? Thanks!

Add data to Report by keying it in

$
0
0

I have a CR pulling data from a database. what I need to do is add data to the report by typing it in the report.

How can I do this ?

 

Tony


.NET SDK Application Creating _trace.glf Files

$
0
0

We deployed an application written using the .NET SDK.  We also deployed some of our own custom reports for it.  That all works fine.  But the customer has some legacy reports they wanted to run through our application and these legacy reports generate these _trace.glf files ... whereas our distributed reports do not.

 

Otherwise, the reports appear to run properly.  Customer does not want these trace files cluttering up their machines.

 

Here's the contents of the trace file:

 

FILE_TYPE:DAAA96DE-B0FB-4c6e-AF7B-A445F5BF9BE2

ENCODING:UTF8

RECORD_SEPARATOR:30

COLUMN_SEPARATOR:124

ESC_CHARACTER:27

COLUMNS:Location|Guid|Time|Tzone|Importance|Severity|Exception|DeviceName|ProcessID|ThreadID|ThreadName|ScopeTag|MajorTick|MinorTick|MajorDepth|MinorDepth|RootName|RootID|CallerName|CallerID|CalleeName|CalleeID|ActionID|DSRRootContextID|DSRTransaction|DSRConnection|DSRCounter|User|ArchitectComponent|DeveloperComponent|Administrator|Unit|CSNComponent|Text

SEVERITY_MAP: |Information|W|Warning|E|Error|A|Assertion

HEADER_END

.\tracelog_logger.cpp:188:__thiscall CXLib500::TraceBridge::TraceBridge(void): TraceLog message 1

|f01a1753-672a-7874-eb32-5f57ee88c555|2014 01 15 16:31:42:746|-0600|>>|A| |PCMSCrystalViewer|  468|4844|| ||||||||||||||||||||||The internal logger count not create the required directories

The specified path is not accessible or does not exist: C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\logging\

 

Thank you.

Meta Data of Crystal Reports

$
0
0

Dear All,

 

Please let me know how we can use the VS.Net or any other MS tools / technologies to get the Meta data information of the crystal reports “.rpt” file.

 

I would like to get the details like data source names, report field names, selection formulas, formula definition, Running total formulas  etc in an xml format / excel or some other format. Please let me know what are the software’s required to install. Also share if you have any SAP documents related to the Crystal SDK.

 

Thanks in Advance.

 

Regards

Sam

Problem with log4net dll

$
0
0

Hi,

we have a web application with reports.

to print a report I use to use an aspx page with a crystalreportviewer and a crystalreportsource in Visual Studio 2010.

when I tested this application in localhost anything goes fine. but when I published this web application to an host ( aruba for example ) I get an error, exactly an error for publik key.

I found a suggestion here, http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ…

and I put the correct dll. but when I published the code, I got another error..

Method 'CreateRowsetCursor' .... PublicKeyToken=692fbea5521e1304' does not have an implementation

 

now I think that if I can install crystal package on a server I'll resolve any problems. but if I have only access to the host with ftp and access to bin etc....and I only can publish dll..page..etc...how I can resolve this problem?

thank you

Export to CSV from CR2008

$
0
0

We have CR 2008 installed 12.4.0.966.  I have built a report and am displaying it through a vb.net application using a crystal reports viewer control (v 12.0.2000.0 control)

 

When we run the report, the option to export to CSV is not available.  When I am in the report designer it is there, but not when I use the .net control.  We are using VS 2008.

"SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) Ver 14.1.1.1036"

$
0
0

where can i download "SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) Version 14.1.1.1036"

Custom paper size revisited

$
0
0

I have read many articles and I spent many hours regarding this issue: how to print in a custom paper size using Crystal Reports in C#? I came across this issue because I need to print in a statement (8.5"x5.5") paper size and some printer's driver have no defined paper of this size, for example Lexmark Pro700 Series. So my options are:

 

1. Create a new form in Windows (using Print server properties in Control Panel\Hardware and Sound\Devices and Printers) and selecting it in source code (setting System.Drawing.Printing.PrinterSettings.PaperSize.RawKind property). We need to find out the paper ID generated by Windows, this is done by iterating through System.Drawing.Printing.PrinterSettings.PaperSizeCollection and then assign it to RawKind.

 

2. Setting dimensions in Windows with Printing Preferences for the printer driver and set RawKind = 256 (this is the value for Custom size in the PaperSizeCollection).

 

3. Set paper size dimensions (width and height) in source code using  new System.Drawing.Printing.PaperSize("MYNEWSIZE", 850, 550) or ReportClientDocument.PrintOutputController.ModifyUserPaperSize(550, 850).

 

There is a problem with options 1 and 2: if the printer is shared on network then the paper size is not accessible by source code (iterating through System.Drawing.Printing.PrinterSettings.PaperSizeCollection), it doesn't matter if you define the paper size locally. This happens only with some printers like Lexmark but not with Epson. The option 3 just didn't work.

 

I design my reports with Crystal Reports Developer XI Release 2 edition. The form MyReport.rpt (just a test form) was created using Statement, Landscape paper size with a Epson LQ-630 default printer (be sure your default printer has a statement size).  See the attached file for some of the code I have tried. So I have a simply question: How to print a form in statement paper size regardless of the sizes defined in the printer driver?

Deployment of CR for Visual Studio 64 bit

$
0
0

Hello,

 

I have written an application that uses CR for Visual Studio. It deploys and runs fine on 32 bit systems. I want it to work on 64 bit systems, too, so I ran CRRuntime_64bit_13_0_7.msi to install the redistributable, When I select my prerequisites in VS 2012, should I see an entry for CR 64 bit? I don't.

In VS, I set the target CPU to x64 and publish (Clickonce). When I try to install it on my Win 7 64 bit system, I get an error (see image).

How can I deploy the 64 bit CR runtime with my application?

 

Thanks,

Dotty

CR Error.jpg


WPF viewer crash on loading report when IsVisible false

$
0
0

Just discovered some long term instability in using the Crystal Report WPF viewer was down to its handling of loading reports when not visible.

 

If you do this

 

this.viewer.ViewerCore.ReportSource = reportFile;

 

when

 

this.viewer.IsVisible == false

 

then at some point soon after a Null reference exception is thrown in the viewer dll.

 

I've had to work around it by not assigning the report until I know the viewer is actually visible.

WPF application with SAPBusinessObjects.WPF.Viewer will not run on other computers

$
0
0

I built a WPF application and added the SAPBusinessObjects.WPF.Viewer for the reports. Works great on the development machine. Will not run on any other machine. What do I need to include with the exe to allow the SAP Viewer to run on other machines? Application log says something about log4net, but I am not using anything that I am aware of that is calling this.

 

Thanks,

Bobby

Crystal Report 13 prompts Database Login in VS 2010

$
0
0

I am currently having problem displaying the Crystal Report in my VB.Net(VS2010) application. I Googled this issue, found similar problem, but their solution didn't fixed mine.

Everytime I call the CR report from my VB application, it always prompts for a Database Login. I've entered my DB credentials but it fails. I am connecting to a MySQL5.1 via ODBC connector.

http://i.stack.imgur.com/Eh9rC.png

In my Crystal Report, I have created a custom Command which accept 2 parameters from my application, e.i, dateFrom and dateTo, which I used to query between the date range.

http://i.stack.imgur.com/uasVO.png

I've noticed that when I took off my code where it sets the Crystal Report parameter value, the Database Login doesn't appear.

Here's my code snippet:

Dim appPath As String = Path.GetDirectoryName(Application.ExecutablePath)Dim cryRpt As New ReportDocumentDim CRTable As CrystalDecisions.CrystalReports.Engine.TableDim CRTLI As CrystalDecisions.Shared.TableLogOnInfo
cryRpt.Load(appPath & "\Reports\crDtrLogs.rpt")
frmReportViewer.crReportViewer.Refresh()For Each CRTable In cryRpt.Database.Tables  CRTLI = CRTable.LogOnInfo   With CRTLI.ConnectionInfo   .ServerName = "dtrsql"   .UserID = "root"   .Password = "root"   .DatabaseName = "dtrsql"   End With   CRTable.ApplyLogOnInfo(CRTLI)Next CRTable

When I took this out, everything works fine even without adding the table connection info


cryRpt.SetParameterValue("dtpFrom", dtpFrom.Value.Date.ToString("yyyy-MM-dd"))
cryRpt.SetParameterValue("dtpTo", dtpTo.Value.Date.ToString("yyyy-MM-dd"))
cryRpt.SetParameterValue("strDateRange", dtpFrom.Value.Date.ToString("MMMM dd, yyyy") & " - " & dtpTo.Value.Date.ToString("MMMM dd, yyyy"))
frmReportViewer.crReportViewer.ReportSource = cryRpt
frmReportViewer.Show()

Any help is greatly appreciated. Thanks

crystal report problem

CR for 32/64 bit problems

$
0
0

Hi

 

Issue #1:

When deploying an application that uses Crystal Reports to a Windows 8, 64bit Machine, the application setup installs the correct “Microsoft Visual C++ 2012 Redistributable” version, followed by the latest version of “SAP Crystal Reports runtime engine for .NET Framework (32-bit)” without issue. However, when a report is created in the application, the following error occurs:

---------------------------
Failed to load database information.
Details: The database DLL 'crdb_fielddef.dll' could not be loaded.
Error in File temp5b66a1fd-1e6d-4daa-b341-2dd5a945a0a9

{D249F119-7602-49D6-BCA3-E72279FB8380}.rpt:
Failed to load database information.
---------------------------

I found a post on the SAP forum with a similar issue. The solution advised to install the 64bit Crystal runtime on the deployment machine and to recompile the sourcecode for a 64bit CPU.

However, when installing the 64bit Crystal runtime, the following error was encountered:

 

---------------------------

Error 1904. Module C:\Program Files (x86)\SAP

BusinessObjects\Crystal Reports for .NET Framework

  1. 4.0\Common\Sap BusinessObjects Enterprise XI
  2. 4.0\win64_x64\crtslv.dll failed to register. HRESULT

-2147010895. Contact your support personnel.

---------------------------

 

Issue #2:

When deploying the application to a Windows 7, 32bit Machine, the setup does not install any version of “Microsoft Visual C++ 2012 Redistributable”, assuming it is already installed,and fails installation with the same dll registration error as above (but win32_x32 instead of win64_x64).  

 

Does this ring any bells with anyone?

 

Thanks

 

Julian

Viewing all 2556 articles
Browse latest View live


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