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

adding images to report created in VS 2010

$
0
0

Hi,

 

I'm trying to display an image in an report created in VS 2010. I'm defining the column in the dataset being of type byte[] and I'm dumping this column in the report. Unfortunately does not work

 

I have tried both .BMP & .JPG without success

 

I'm reading correctly the image into the row.

 

Is this supported at all with the version used in VS 2010?

 

IF not, which version should I use?

 

Thank,

Ignacio

http://www.laceupsolutions.com


Any known issues with CR (v. 13.0.9.1312) and MS APP-V?

$
0
0

Hi!

 

I am helping a client troubleshoot a problem with MS App-V 5. He has created an App-V pack of our app and it fails printing. The actual error is:

 

12.06.2014 11:58:48 OpenReportFile(C:\ProgramData\App-V\DA607900-9063-4A5C-A935-00D13FD31192\F298F1C1-3210-414A-BAEA-6F1BABA6245F\Root\Reports\Kontroll.rpt), alternativ fil C:\ProgramData\App-V\DA607900-9063-4A5C-A935-00D13FD31192\F298F1C1-3210-414A-BAEA-6F1BABA6245F\Root\Reports\_Kontroll.rpt

12.06.2014 11:58:49 gcnew m_Report: Retrieving the COM class factory for component with CLSID {F734A321-8381-4FFD-A614-139E8906DC83} failed due to the following error: 8007007a The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A).

 

The GUID is for clientdoc.dll and I am wondering about this "too much data". Could it be as simple as that the very long paths created by App-V results in an overflow somewhere?

 

Anyone else seen this? Ay tips for troubleshooting?

 

The error happens when the ReportDocument is instantiated (CrystalDecisions::CrystalReports::Engine::ReportDocument()) but before the actual report file is loaded. I think it is when clientdoc.dll calls crystalReports.Engine.Dll

Crystal reports barcode not working with PDF

$
0
0

Hi

 

I have a report which uses custom font designed by us. Report which uses this font for barcode is generated successfully and can be previewed also. I can export this report to Word, excel and other various formats except PDF.

 

When I tried finding out the reason by going through other posts related to this issue, they instructed me to check the font embeddability which should be "embeddable" or "installable". When I checked the font, its embeddability is "Restricted".

 

Then I checked if export to PDF issues persists using RAS API only or it comes up using crystal designer too. As expected, same issue came up with crystal designer too. There also I am able to export report expect in PDF format.

 

Can anyone share his thoughts over this issue? Is there any viable solution for this problem? If changing font embeddability to "embeddable" or "installable" is only solution, then how did it work with earlier crystal version like 8.5?

 

 

Environment details:

Crystal reports : CRforVS_13_0_9

Visual Studio 2012

 

 

I have attached the rpt file also for reference. I have changed the file format from rpt to txt. Just reverse it back to rpt format when you want to refer it.

 

Thanks

Saurabh

Crystal Report Toolbar images not displaying properly in IE?

$
0
0

Hi,

I am using VisualStudio 2012 ,crystal report version 13.0.2000.0 and sp5.

My problem is that after loading crystal report, toolbar image icons (such as print,export etc) are not showing properly ininternet explorer(version ie10). But it is displaying correctly in chrome and firefox.

What could be problem ?? Any help will be appreciated ..

hi, i am trying to open and view a report that comes from another server with different odbc connection

$
0
0

hi, i am trying to open and view a report that comes from another server with different odbc connection

i created a crystal report for a mysql database on my machine and everything works great

but we have other reports that come from other machines with different odbc connection

and this its not working when opens the report asks for credentials

and i cannot use the remote ip for these reports that come from other machine

question

if i cannot connect to remote ip to open the report

for each report i have to create a database the report database on my machine and then open the report ?

or there is some other way to open the report ?

i am using visual studio 2013 and mysql and

   <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>

thanks

Localization in Crystal Reports for .Net

$
0
0

Greetings,

 

I'm developing an ASP.Net Web Forms application that will involve reporting, and I'm considering using Crystal Reports.

 

One of my main requirements is localizable reports. Not only I want to change text and formats based on the display language, but also the layout, as the reports are displayed in both Arabic (right to left) and English (left to right).

 

My managers claim that the only method to do localization in Crystal Reports is to create a separate report for each language. Is that true?

 

Quoting from the product brief, it says:

  • Deliver personalized reports to hundreds of thousands of consumers’ preferred destinations in their preferred language and format.
  • Deliver personalized reports to business users in their preferred language and format and to their preferred destination (desktop, mobile device, or Web).

So, we thought that there're some built in capabilities to do the job.

Missing References

$
0
0

Hello All,

     We are moving our ASP application from an old server to a new server and upgrading CR at the same time.

I recently ran a test and recieved the following error:

"Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies."

 

I realize the application is pointing to the older version of crystal.

Can I just manually update the web config file with the new version of CR's info and be done with it, or is there something more that needs to be done?

 

Thanks

Invalid Section Height when I load the nth subreport

$
0
0

I am attempting to load multiple sub-reports into a master report document. The process is:

 

  1. Use the RAS SDK to obtain a reference to the detail area
  2. Add a section to the detail area
  3. Import the subreport into the detail area

The code is pretty simple as well.

 

        privateReportDocument AddSubReportToParent(string subReportName, string fileName)

        {

            try

            {

                CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea detailArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea;

 

                CrystalDecisions.ReportAppServer.ReportDefModel.Section section =new CrystalDecisions.ReportAppServer.ReportDefModel.Section();

                string sectionName ="Section"+ subReportName.Replace(".", "");

                section.Name = sectionName;

                section.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;

                section.Width = headerArea.Sections[0].Width;

               

                _crystalDocument.ReportClientDocument.ReportDefController.ReportSectionController.Add(section, detailArea, -1);

                _crystalDocument.ReportClientDocument.SubreportController.ImportSubreport(subReportName, _configSettings.InputPath +"\\"+ fileName, section);

 

                ReportDocument subreport = _crystalDocument.OpenSubreport(subReportName);

                return subreport;

            }

            catch (Exception ex)

            {

                Logger.ErrorException(this.GetReportBuilderErrorText(this.GetReportBuilderErrorText(String.Format("Unable to add subreport '{0}' from file {1} to custom Crystal Report", subReportName, fileName))), ex);

                throw;

            }

        }

 

However, when I attempt to load the 41st report (or sometimes greater) the ImportSubreport method throws an exception with the message, "Invalid Section Height". Note that I have one section for each report. This is to make it easier to place the subreport on in the document and on it's own page.

 

I cannot seem to determine what is going wrong. Why would the 41+ import fail?

 

I am using Crystal Reports Version for Visual Studio .NET, 13.0.8.


CR for VS2005 upgrade to VS2010 to VS2013

$
0
0

Hi all

 

Recently I took over an old project which was developed on VS 2005 using Crystal Report XI (separate purchase) 7 years ago. I have imported the project into VS 2010 and replace the CR 11.5 with CR 13 (that came with VS 2010).

 

I realised some of the reports had the option 'Verify on Every Print' checked and in the code, the subroutine VerifyDatabase() was called prior to each print.

 

Question 1.

Can I remove this option 'Verify on Every Print'? With this checked, the report will take triple the time to print.

 

Question 2.

What is the use of this option? I googled for a week and unable to find a good explanation to use and not to use.

 

Question 3.

Can CR 13 (embedded) run on 64-bit Windows 7 and Windows 8/8.1 after upgrading the project file from VS 2005 to VS 2010?

 

Question 4.

If I were to upgrade to VS 2013, will there be any vast speed improvement?

 

Any of your input is appreciated.

 

Please assist me.

Report designer in c# application

$
0
0

A greeting. I wonder if it is possible to add to an application environment c # crystal report design.

We need users to edit application c # reports from the application.

 

I add a reference image

foroimagen.png

Visual Studio 2013 Crystal Installation?

$
0
0

Hi,

 

Windows 8, Visual Studio 2013, ASP.Net web development environment, 64bit machine

 

We have downloaded the CRforVS_13_0_9.exe installation for Crystal Reports (CR) in Visual Studio (VS), which we believed to be for VS 2013.

On installation, the pop up screen says 'SAP Crystal Reports. version for Visual Studio 2010 setup.' A little confused by this, but carried on regardless.

 

After installing, we can see the reports in the designer in Visual Studio, but on running through VS, in the debugger for instance, when we go to a CR in the browser, some resources are not found and the report does not display.

 

'Fiddler' says that it cannot find a path to resources which is at the root of the website. We don't normally have to copy resources down to the root of the development environment.

 

Can anyone help? Have we got the right installation?

 

Many thanks,

 

Julian Tucker

CrystalReportViewer.SearchAndHighlightText How it works?

$
0
0

While I was examining the CrystalReportViewer ASP.Net control, I found the SearchAndHighlightText method.

I used it in an example and found that it searches in the current page only, and highlights the matched text objects in it.

 

I want to create search functionality similar to that in word processors. Where a user searches for text, and the matches are highlighted, and "next-previous" buttons appear to allow the user to navigate through the matches. But SearchAndHighlightText only returns a bool not matches.

 

How may I create the required functionality if possible?

Crystal Reports prompt issue on export: “The report you requested requires further information”

$
0
0

I have searched through forums for a solution but none seem to work for me.

 

I have an ASP Webform/MySql application which displays Crystal Reports.

 

The ones which do not require a user to enter a parameter display fine and I am able to click on export on the CR toolbar and download, e.g. .pdf format.

On the report that require a user to enter a parameter, the report renders fine but when I click on the export button, i get the prompt:

 

"The report you requested requires further information"


asking for DB login credentials. How can I avoid this?


My Code:


Aspx page:

......

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

.....

<div>

          <CR:CrystalReportViewer Width="960px" ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />

</div>

 

protectedvoidPage_Load(object sender,EventArgs e)
{
        
if(Request.QueryString["report"]!=null)
        
{
               
string reportToGet =Convert.ToString(Request.QueryString["report"]);

               
switch(reportToGet)
               
{
                       
case"payslip":
                       
PaySlip();
                       
break;
                       
case"pastpayslip":
                       
PanelPastPaySlip.Visible=true;
                       
break;  
                      
default:
                      
break;
               
}
         
}
  
}


protectedvoid btnSearch_Click(object sender,EventArgs e)
{
     
if(txtDate.Text!=null|| txtDate.Text!=string.Empty)
     
if(DateTime.TryParseExact(txtDate.Text,"yyyy-MM-dd",CultureInfo.InvariantCulture,
     
DateTimeStyles.None,out date))
     
PastPaySlip();
}


private void PastPaySlip()

        {

            // Some code....

 

            PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter ta =

                new PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter();

            PayMasterDataSet.pastpayslipcasualviewDataTable dt = new PayMasterDataSet.pastpayslipcasualviewDataTable();

            ta.FillBy(dt, userId, businessId);

 

            cReport = new ReportDocument();

            string reportPath = Server.MapPath("~/Views/CasualLabour/Reports/PastPaySlip.rpt");

            cReport.Load(reportPath);

 

            cReport.SetDataSource((DataTable)dt);

            cReport.SetParameterValue("Date", date);

            cReport.SetDatabaseLogon("userID", "password", "server", "database");

            CrystalReportViewer1.ReportSource = cReport;

            CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;

        }

 

I am using CR V. 13.0.9 and VS 2013 Update 2

"Can Grow" Fields cutting Text on right Margin if Page Setup has no Printer

$
0
0

Dear Community,

 

i found out, that in our Report's (about 500) "Can Grow" Fields cut the Text on the right margin.

 

It seems the Word Wrap dosn't work....After all, i tried to reproduce it. First i can't.

 

But then I found out, that you must  set have in Page Setup "No Printer (optimize for screen display)" to get the same issue. 

 

We have Crystal 2008 with all SP's and using VS2010 SP2 to view our Reports. The most Fields are comming from Database.

 

here some picture:

 

 

[http://knw-610.com/tmps/CutText.JPG]

 

Hope you can help me.

 

Best regards

 

 

Steven

 

Edited by: vissers on Dec 21, 2011 10:13 AM

Error: 'bobj' is undefined - crystal report for VS2013 - please help ASAP

$
0
0

Currently we are trying to migrate from VS2008 to VS2013 and we installed Microsoft Visual Studio Ultimate 2013 on a windows 7 laptop. All our crystal report programs are migrated to VS2013. I downloaded Crystal report Support Pack 10 (v. 13.0.10.1385) executable version and installed it. Then opened our old project (from vs2008) in VS2013 and it went through the conversion process. Later I opened each .rpt file and saved in VS2013 so that the crystal report files will be saved in the new format.

 

I am getting the Error: 'bobj' is undefined when I try to run the report. Am I using the correct service pack 10, or should I use service pack 9. I have read through all the posts related to this error in earlier version of VS. Is there any correct fixes for VS2013?

 

This is urgent, I am stuck with this error. please help??? Thank you.

 

JS


Has anyone actually fixed the "bobj is undefined" problem?

$
0
0

We just installed Crytal Reports for Visual Studio SP9 into our Visual Studio 2013 environment which was supposed to fix the problem, NO it doesn't.  I have tried all the "copy this to that" directories I can stand, we still have the problem.  We waited on SP9 for months, hoping for a breakthrough.  The same code works in VS 2012 environment but pops up the infamous "bobj" when debugging in VS2013.  Any serious fix we can try?

How to develop a report in Crystal with flexible database name?

$
0
0

Hello

 

I am a Project Manager of a project of developing reports in Crystal 11.

The idea is to develop reports on top of the content in MS SQL tables.

 

 

 

The initial testing and demonstration to the customer is done within the Crystal development environment.

 

In a later stage, we need to integrate the reports with C# WPF application, using Crystal control.

 

We currently use ODBC connections.

 

We want the flexibility to set the actual database dynamically, by using the "default database" of the ODBC connection (or any other way). In other words, we want not just the flexibility to change the database server, but work with different database names, like "ProductDB_TEST", "ProductDB_PROD" etc. - without changing the report.

 

Unfortunately, we got the answer from the developer that the database name should be pre-defined for a given report. Although the connection can be set to another server, the DB name cannot be set dynamically.

 

Looking into the "Database" -> "Show SQL Query" menu, we see the following piece inside the query:

 

INNER JOIN "DATABASE_NAME"."dbo"."IncidentTypeSnapshotData"

 

So it looks like the query itself contains the DB name.

 

Is it really a limitation of Crystal, or rather the developer working on the project doesn't know the trick?

 

Thanks for any hint

Max

Crystal

$
0
0

Hi Bhushan,

 

Thanks for your answer.. The info. that you have given has lots more in it. and I am not an advanced user in crystal

 

Could you please make it short and simple ..

 

Scenario: We use Epicor (ERP software) for reporting and we have Crystal Runtime 2008 installed to run Crystal reports developed in XI R2

 

1) Reports designed in Crystal XI R2...

2) Run-Time I have now is Crystal 2008

 

Query: If I update my Report designer to Crystal 2013... Do I need to make any formatting changes that are already developed using Crystal XI?

 

If I don't need to make any Changes-> What version of Crystal Run-Time should be used for both 32 and 64 bit machines. Does Crystal 2008 run-time needs to be updated?

 

I am not sure about this statement : "you need to deploy the app as a 64 bit app you would need to useCR for VS 2010 / 2012 / 2013 to develop your app with version 13 runtimes and use the report designed in any of above CR designers"

Need to uninstall CR 64 and install CR 32 for vs2010 on a development PC

$
0
0

I am doing my development in vs2010 on a new computer as well as the older pc.  Both the old one and the new are 64 bit.  However on the old pc when I added CR to the vb.net 2010  (vs2010) I installed CR32 for net crystalreports.  When I install on people's servers, I install the cr32bit msi.

 

However, the person setting up the new computer when they installed vs2010 installed the 64 bit version.

 

I am concerned that it will make it impossible now to copy my work from the new computer to the old one.   Can I uninstall the cr64 from the vs2010 and instead install the cr32 version?

 

If so, how is this done?

 

Or do I also install the cr32 and then make some reference to which CR a program is using when I create a new project?

 

Or do I uninstall  vs2010 and reinstall  vs2010 and CR32.

 

Any help would be appreciated.  Thanks

Crystal Reports 2008 and ASP.NET Web Application Deployment - Tipps

$
0
0

Hello all,



The last few days I spent a lot of time trying to integrate a Crystal Report into an ASP.NET Web Application. In this post, I want to pass on some tips and I try to describe how I've achieved it finally to get this thing up and running


================

1. Prerequisites

================


Developer machine:

- Windows 2003 Server with IIS 6

- Visual Studio 2008 Standard Edition

- Crystal Reports 2008 SP2 installed (Full Product Install)

- Crystal Reports 2008 SP2 Runtime installed

- .NET Framework 3.5 SP1 installedv


Deployment machine:

- Windows Server 2008 with IIS 7

- Crystal Reports 2008 SP2 Runtime installed

- .NET Framework 3.5 SP1 installed


As you can see, my developer environment doesn't exactly match my target machine. I think it doesn't matter as long as you're using the same Crystal Report Runtime Version.


===================

2. Steps to Success

===================


Step 1: Create your Report

-

-




Use Crystal Reports Designer 2008 SP2 to generate your Report. Save it as RPT-File.


Step 2: Integrate ReportViewer Control into ASPX-Page

-

-




Open your desired ASPX-File and place the CrystalReportViewer Control on your page.



Here's my code for the CrystalReportViewer control:

 

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />


I had to make sure, that the following Assemblies were included in my web project:



- CrystalDecisions.Shared

- CrystalDecisions.Web




The Code-Behind file of my aspx-page looks like this:

 

    public partial class ShowReport : System.Web.UI.Page<br>    {<br>        protected void Page_Init(object sender, EventArgs e)<br>        {<br>            ConfigureCrystalReports();<br>        }<br><br><br>        private void ConfigureCrystalReports()<br>        {<br>            string ReportPath = "";<br>                        switch (Request.QueryString["id"])<br>            {<br>                case "1": ReportPath = Server.MapPath("MyReport1.rpt"); break;<br>                case "2": ReportPath = Server.MapPath("MyReport2.rpt"); break;<br>            }<br><br><br>            ConnectionInfo connectionInfo = new ConnectionInfo();<br><br>            connectionInfo.ServerName = "<your server name here>";        // Host name of database server<br>            connectionInfo.DatabaseName = "<your database name here>";    // Database name<br>            connectionInfo.UserID = "<your username here>";               // Username to login into database<br>            connectionInfo.Password = "<your password here>";             // Password to login into database<br>            CrystalReportViewer1.ReportSource = ReportPath;<br>            SetDBLogonForReport(connectionInfo);<br>        }<br><br><br>        private void SetDBLogonForReport(ConnectionInfo connectionInfo)<br>        {<br>            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;<br>            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)<br>            {<br>                tableLogOnInfo.ConnectionInfo = connectionInfo;<br>            }<br>        }<br>    }<br>


As you can see, this source reads the id-parameter from the page request variable and then decides which report to load. This code assumes, that your rpt-files are placed in the same location as the aspx-page above. Server.MapPath then maps the website location to an absolute file system location. This is later passed to the viewer control which finally opens the file and renders it.


The code you see above is recommended by the crystal reports people (and is somewhere placed in one of their guides - app developer guide or api guide, I think).


Step 3: Configure IIS

-

-




When you install the Crystal Reports Runtime, you will notice, that a new directory has been created in your C:inetpubwwwrootaspnet_clientsystem_web2_0_50727 directory. This is the code which the CrystalReportViewer control needs in order to properly display the parameter input form and the rendered report.


I had to create a new virtual directory in my app which points to the aspnet_client folder. This is my setup of the virtual directory:


Virtual directory name: aspnet_client

Points to: C:inetpubwwwrootaspnet_client


The structure of your web app including aspnet_client virtual directory has to look like this after setup:

 

/MyWebApplication<br>    /bin<br>    /aspnet_client  --> this is the virtual directory!<br>    Default.aspx<br>   Web.config<br>


I also had to remove the web.config file inside the crystalreportviewers12 directory to get my app up and running. I don't know what the purpose of this web config file is. I'm currently investigating it as I've nothing found on the forums here. I would really appreciate it if anyone could point me to another forum thread regarding this topic.



Right, I hope I haven't forgotten anything to mention. Should one have questions I'm glad to help. Just let me know.


Step 4: Deploy your App

-

-




After that, I've deployed the app using the Publish.. function. You have to make sure, that you copy your reports to the same location as your aspx-page after deploying. Unfortunately I haven't worked out a better way to deploy the reports. But maybe anyone can help me here too?


Thank you.

 

 

André

 

Viewing all 3636 articles
Browse latest View live


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