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

Problem with windows 10, VS 2015 and SP15

$
0
0

Hello everyone !!!
I'm with the problem
when I'm working as Visual Studio 2015 and run the application in debug mode, clicking the report visual studio shows this message. I already put the aspnet_client folder in my application anyway the message below.


0x800A1391 - JavaScript runtime error: 'BobJ' is not defined

 

shows in internet explorer and the edge goes blank

 

 

Win10
VS2015
CR - SP15

 

thank you all

Andre Martins


The CR 2010 for VS engine changes the margins and scales the report

$
0
0

The CR 2010 for VS engine changes the margins and scales the report but only when printing.

 

Environment:

OS: Windows 7 x64 / Windows 2008 x64

VS: VS 2010 x64

CR designer: CR 2008 SP3.5

CR engine: CR 2010 for VS SP1

 

We have upgraded the Crystal Reports engine from version 10 to u201CCrystal Reports 2010 for VSu201D and are now having major issues with printing reports to preprinted papers, giro forms etc. because the report margins are changed and the reports are scaled (when report elements are in non-printable area?). Reports with elements in non-printable area are shown correctly in print preview (CR 2010 CrystalReportViewer) but moved to printable area when printed. This behavior was different in CR 10. Changing the PrintLayoutSettings in code is ignored when printing.

 

Error u2013 The printed reports are scaled:

-     Print in the CR 2008 Designer SP2

-     CR 2010 for VS SP1

 

OK u2013 The reports are not scaled:

-     Print in the CR 2008 Designer SP3.5

-     Print in the CR 10 Designer

-     CR 10 engine

 

Test:

 

1) Crystal Reports Designer 2008 (with SP 3.5)

 

  a) Create a new blank RPT file.

 

  b) Set report margins to 0,0,0,0 in Page Setup.

 

  c) Add a box in the upper left corner (x=0, y=0).

 

  d) Select "Print preview" and validate that the box is located in 0,0 in preview window.

 

  e) Select u201CPrintu201D and validate that the box is located in 0,0 of the paper. Some of the box borders might be outside of the printable area but that is ok.

 

2) Visual Studio 2010 and u201CCR 2010 for VSu201D with SP1:

 

  a) Create a new Windows Forms Application project (.NET Framework 4.0). Set project to u201C.NET Framework 4.0u201D and platform target u201Cx86u201D.

 

  b) Add the CrystalReportViewer control to Form1.

 

  c) Add the RPT file to the CrystalReportViewer control

 

  d) Run the application

 

  e) Validate that the box is located in 0,0 in the CrystalReportViewer control.

 

  f) Select the "Print" icon in the CrystalReportViewer

 

  h) Click the "Print" button and validate that the box is moved to the printable area which is wrong.

 

Notice: In the print dialog (CR 2010 for VS) select the "Layout" tab page and see that "Scale u2026" is selected and cannot be changed. This is different from the CR 2008 Designer even though that it is the same report file and printer.

Error : .CS file not generated for adding Crystal Report to Website in VS2013

$
0
0

I have been facing issue of not finding the .CS file after adding Crystal report to VS2013 Website. It adds Crystal report to Web application, Winform etc but not to the website. Also If I create a manually generated .CS file, It runs locally but not after putting it on the server by producing the error

Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154.]

  CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +233

 

I guess not generating the .cs file is the actual problem. I have updated the SP14 for VS2013. Still facing the problem.

Please let me know soon if possible. I appreciate your help. Thanks.

Regards,

Gaurav

Crystal Reports in a .NET Application ignores Printer Tray

$
0
0

Hello,

 

we have developed an application with Visual Studio .NET 2015 to print our Crystal Reports files. We deliver the application to several customers, but when they try to print to a printer with more than one printer tray, the Report is printed always on the paper of tray one, although the printer driver in windows is configured with printer tray 2, e.x.

 

We already tried to install the newest version of Crystal Reports Runtime on the Clients, but the problem occurs

 

Does anyone of you also has this problem and knows how to solve it? Do we have to develop it within the source code?

 

Sorry for a possible double post.

Problem while deploying a crystal report application

$
0
0

Hello

 

I post this thread because, i'm in despair.

 

 

I have developped a C# application which uses Crystal Report to generate a *.doc file. The application works on my developpement station but i can't make it work on client station.

 

 

When i am executing the application on client station, the application crashes with the following message : "MyApplicationName.exe stop working". I have installed Visual Studio on the client station for viewing the line crash the application and the line is :

 

rpt.ExportToDisk(ExportFormatType.WordForWindows, destinatedPath);

 

The line is extracted from this code :

 

ReportDocument rpt =  rpt = new ReportDocument();
rpt.Load(rptPath);
rpt.ExportToDisk(ExportFormatType.WordForWindows, destinatedFilePath);

When i debug the application with Visual Studio, the error is :

 

0x00000000 in MyApplicationName.exe :

0xC0000005: Access Violation

 

I deployed my application with Installshield. I used MergeModule to add SAP Crystal Reports runtime engine for .NET Framework in the prerequisites. Moreover, i included to prerequisites Microsoft .NET Framework 4.5 Full and Windows Installer 4.5 for Windows Vista(x86).

 

 

My developpement configuration and client configuration : Windows 7 64 bits, Net Framework 4.5, SAP Crystal Reports runtime engine for .NET Framework 13.0.15 , Visual Studio 2012.

 

 

I am on the problem for 4 days so i need your help.

 

 

Thank you in advance for your help.

.NET Graphic Location

$
0
0

I am using the graphic location to pull an image from the disk and place it in the report.  This works with 2013 crystal reports.  When I use the .Net Viewer I can show the path an it is correct but the image fails to show more often than not.  If I click previous and next and keep doing it sometimes one of the images will come back and the other are missing.  It works great except in the .Net Viewer. Please help. If I go to the need of the report then back to the beginning most of the time all the images on each page are missing.  Any ideas?

 

First time the report loads most of the images show until I change pages and then some will not show.

Print is scaled when printing from .NET Application

$
0
0

We have an application which prints a report file (a purchase order) via Crystal Reports. When I print the purchase order within the application my print is scaled down (logo is smaller than within Crystal Reports Designer, left edge, top edge, bottom edge, right edge are bigger...).
When I print the same purchase order directly from Crystal Reports via the Pageview then the edges and the images are of the correct size.

 

Do you have any hints how I can fix this problem or where I have to start my research?

 

Regards!

MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954)

$
0
0

From where can I download MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954).

Instead of MSI we want to integrate MSM.

 

Please provide the download link.


RTF vs HTML

$
0
0

Taking into consideration the types of Crystal Reports interpretations, Rich Text Format (RTF) and HyperText Markup Language (HTML), which option offers greater support and why?

 

 

I could see that Crystal Reports does not support :

<p style = "text-align: justify;"> ... </ p>

 

The text is not justified!

 

But after converting this code to RTF:

 

"{\\rtf1\\ansi\\ansicpg1252\\uc1\\htmautsp\\deff2{\\fonttbl{\\f0\\fcharset0 Times New Roman;}{\\f2\\fcharset0 Segoe UI;}}{\\colortbl\\red0\\green0\\blue0;\\red255\\green255\\blue255;}\\loch\\hich\\dbch\\pard\\plain\\ltrpar\\itap0{\\lang1033\\fs18\\f2\\cf0 \\cf0\\ql{\\f2 {\\ltrch ...}\\li0\\ri0\\sa0\\sb0\\fi0\\qj\\par}\r\n}\r\n}"

 

The text was justified perfectly!

 

Crystal Reports is best to RTF?

 

I'm using version 13.0.2000.0.

Crystal Reports Runtime Version 16 CSV Delimiter Issue

$
0
0

We use Crystal Reports for Visual Studio in our application and we recently updated to Crystal Reports Runtime Version 16. When we export a report CSV without defining a delimiter, the exported file now contains a default delimiter of " ". As we do not require a delimiter for this file, is there something we can do to override the default?

 

We used to be able to export the CSV file without defining a delimiter under version 13.

 

Thank you.

CR Version 13_15 still fails to print in landscape in Win 10

$
0
0

I reported this in August CR report working in Win 10 but page orientation fails at print

 

That thread was marked "answered" and "helpful" (not by me) and closed by saying 13_14 was not compatible with Win 10 and that v15 was supposed to be.

 

Since I cannot add a post to that one, here it is as a new post.

 

Using 13_15 and the corresponding merge modules, the same problem exists. On my Win 10 test machine.

 

In August you said you did not have access to Win 10 to verify the issue.  Seriously?  I did not have it either, but felt compelled to put in on a test machine to ensure my software was compatible with it.  Turns out my software is compatible, CR apparently is not.

 

Appreciate it if someone with access to Win 10 could try this scenario and see what happens.

 

Thanks,

Charlie

Crystal Report exporting PDF cannot display Vietnamese!

$
0
0

Dear all,

 

Please help me to advise this issue, a report show Vietnamese comment with many dots under words and some question marks above words, so users cannot understand those comments. Maybe it's just display problem on PDF, because when i copy and paste this comment to a MS Word file then the result like data in database, dots and question marks are disappear. It just happen in PDF format only, another exporting formats are work fine.

 

PDF-error.png

 

I use:

- Windows Server 2008 R2.

- Crystal Report Basic Runtime for VS 2008 version 10.5.1.0.

- SAP Crystal Report runtime engine .net framework 4 32bit version 13.0.1.220.

 

Please kindly help me to advise a solution.

Crystal Reports take 78 seconds to open

$
0
0

Dear Support,

 

A customer is using Crystal Reports Assembly version 10.5.3700. Crystal report is used by their primary business application and is used to print reports out of the business application. But when they choose the option for Crystal report print or Crystal report print preview, it takes about 78 seconds to process the request. The problem doesn't occure when the user is a local administrator, but you won't want to give these rights on a Citrix/Terminal Server environment.

 

EventViewer doesn't help us further and we can't find the source of the problem. Do you have any possible solutions for this issue?

 

It is a virtual Windows Server 2012R2 environment.

 

Thanks in advance.

 

Kind regards,
Stefan van Ree

Webservice as Datasource in CR Runtime

$
0
0

Hi all,

 

I Need to write an application with a websevice as a datasource.

 

I created the Connection in the designer and it is working fine. Does anyone have an example where I can see what properties I have to use to connect to the webservice and to get the data from the webservice within the Crystal Reports runtime? I am using the reportclient document object model with the inproc ras.

 

thanks for the hlep.

regards

joerg

Exporting RPT to PDF through Visual Studio/VB - Bookmarks Missing

$
0
0

I am trying to convert a crystal RPT to PDF format, with the PDF having bookmarks from the RPT using Visual Studio (VB).

Whilst the RPT does convert to PDF, there are no bookmarks in the resulting PDF.

 

However, when I follow these steps, the resulting PDF does contain the bookmarks:

  • Open the RPT file in Visual Studio
  • Go to CRYSTAL REPORTS
  • Preview Report
  • Export Report (Format: PDF, Destination: Disk File, select "Create bookmarks from group tree")

 

My VB code is taken straight from SCN:

 

     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument

        Dim exportFilePath As String = "C:\crystal_PDFs\bookmark.pdf"

        Dim myExportOpts As New ExportOptions

        Dim diskOpts As DiskFileDestinationOptions

        diskOpts = ExportOptions.CreateDiskFileDestinationOptions()

        Dim pdfOptions As CrystalDecisions.Shared.PdfFormatOptions = New PdfFormatOptions()

        crReportDocument.Load("C:\crystal_PDFs\gary.rpt")

        crReportDocument.SummaryInfo.ReportTitle = "Hello World"

        myExportOpts.ExportFormatType = ExportFormatType.PortableDocFormat

        myExportOpts.ExportDestinationType = ExportDestinationType.DiskFile

        myExportOpts.ExportDestinationOptions = diskOpts

        diskOpts.DiskFileName = exportFilePath

        pdfOptions.CreateBookmarksFromGroupTree = True

        'Export the report

        crReportDocument.Export(myExportOpts)

        'Display a message letting the user know the export is complete

        MessageBox.Show("Report exported to: '" & exportFilePath & "'")

    End Sub

 

PDF_Bookmarks.png

 

 

Environment:
  • Visual Studio 2013
  • Crystal Reports for Visual Studio 13.0.9
  • I do not have Crystal Reports designer installed
  • I believe that the RPT file (provided by a colleague) was built using Crystal Reports 8

 

Could the reason for the bookmarks not being included in the resulting PDF be because I only have CR for VS and not the full Crsytal Reports Designer installed?

 

Many Thanks

Gary


ERROR LOGIN CR13 ON SERVER2012R2

$
0
0

Hello,

 

I have to install a software (created by VS2012 and CR13 (13-0-16)) on a machine RDS SERVER 2012.

 

The installation is OK and the software is running. I have install too the CR REDIS X64 version 13-0-16 and the SQLNCLI X64 for SQLSERVER 2012 R2.

 

My question is :

 

When i try to print a report, an error occurd : Login failed.

 

I have try differents solutions (with or without DLL .NET) but it's the same error.

 

An idea?

 

 

Thank you.

 

 

David

Error Creating ReportDocument in VS2010

$
0
0

I'm not terribly familiar with using CR in VS, so I apologize if any of this is inaccurate.  I have a VB.NET application that uses Crystal Reports 2013 report viewer.  I inherited a development machine from another developer that has everything installed and was working under his account.  When I debug this application and get to the following line:

Dim crReportDocument As New ReportDocument

 

I get an error:

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

With the InnerException:

Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=14.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I do see CrystalDecisions.ReportAppServer.CommLayer.dll in C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet\iPoint along with all the other dlls.


I've been Googling and trying things for two days now, any help is appreciated.

Execute a SQL Command at connection.

$
0
0

Hello,

   Is there a way I could force Crystal  to execute a SQL command each time a report connect to the DB. Our goal is to be able to initialize some Oracle variable inside an Oracle package. We would llike to do that without modifying the reports if possible. I have see the UFL but I don't think it's the solution.

 

Thank you.

Charles

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

WebResource.axd and ReferenceError: WebForm_InitCallback is not defined

$
0
0

I am trying to run Crystal Reports on my server but somehow it always comes out blank but in my local machine it works.

error.png

 

 

I have installed Crystal Reports 2013 and CR Runtime SP 16 64bits on my server.

 

This is my servers' information

server information.png

 

 

 

 

and this is my code to call my reports

 

namespace SmartCap_2._0.Forms.Checks.Report

{

    public partial class CrystalReportToView : System.Web.UI.Page

    {

        public string check_IDs = "";

        public string paymentDesc = "";

        protected void Page_Load(object sender, EventArgs e)

        {

            string connStr = ConfigurationManager.ConnectionStrings["SmartCap"].ToString();

            UserInfo user = (UserInfo)Session["UserInfo"];

            //string name = user.ToString();

            string parameters = HttpContext.Current.Request.Params["params"];

            if (!string.IsNullOrEmpty(parameters))

            {

                JavaScriptSerializer jss = new JavaScriptSerializer();

                ReloadRequest rr = jss.Deserialize<ReloadRequest>(Server.UrlDecode(parameters));

                check_IDs = rr.Params.Param;

                paymentDesc = rr.Params.Param2;

            }

            if (!IsPostBack)

            {

                ReportViewPCP();

                //LogActivity.Log_Action(connStr, user.UserName, "Checks Template", "Generate Report", Request.Browser.Browser, Request.UserHostAddress.ToString(), "RV", new FileInfo(this.Request.Url.LocalPath).Name);

            }

        }

 

        private void ReportViewPCP()

        {

            DB db = new DB();

            string connStr = ConfigurationManager.ConnectionStrings["SmartCap"].ToString();

            try

            {

 

                string[] array = check_IDs.Split(',');

                string comp = "";

                for (int i = 0; i < array.Length; i++)

                {

                    array[i] = "'" + array[i] + "'";

                    comp += array[i] + ",";

                }

                comp = comp.Remove(comp.Length - 1);

                if (paymentDesc.ToLower() == "capitation")

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"capitationsReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"capitationsReport.rpt"));

                }

                else if (paymentDesc.ToLower() == "incentive")

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"msoIncentivesReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"msoIncentivesReport.rpt"));

                }

                else

                {

                    CrystalReportSource1.Report.FileName = Server.MapPath(@"incentivesReport.rpt");

                    CrystalReportSource1.ReportDocument.Load(Server.MapPath(@"incentivesReport.rpt"));

                }

                CrystalReportSource1.ReportDocument.SetDatabaseLogon("empty", "empty");

                CrystalReportSource1.ReportDocument.SetParameterValue("ID", comp);

                CrystalReportViewer1.ReportSource = CrystalReportSource1;

                CrystalReportViewer1.DisplayGroupTree = false;

 

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.ServerName = @"empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.UserID = "empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.Password = "empty";

                CrystalReportViewer1.LogOnInfo[0].ConnectionInfo.DatabaseName = "empty";

                CrystalReportViewer1.Zoom(125);

            }

            catch (Exception ex)

            {

                throw new Exception(ex.Message);

            }

        }

    }

}

Viewing all 3636 articles
Browse latest View live


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