Quantcast
Channel: Crystal Reports
Viewing all 1507 articles
Browse latest View live

Crytal Report - Empty Report after canceling refresh

$
0
0

I was trying to update (refresh my report) with crystal's native button. I noticed that canceling the add parameters dialog box makes my report empty. If I press the OK button the error does not happen. I really need to get this issue fix ASAP.

Please community, help me. 


google Maps in Crystal Reports

$
0
0

I Have some code which generates a map and two markers in a crystal Report

The map shows a marker for the nearest Fire Brigade but I would like to be able to display the name of the Fire Brigade

The code is in the Graphic Location of an image

//Markers Accum
WhilePrintingRecords;
StringVar Markers;
NumberVar Counter := Counter + 1;
Markers := Markers & "&markers=color:0x0600FF|label:"
&  CHR(11) & "|"  & "Fire Brigade near" &{@address} ;
Counter;
Markers := Markers & "&markers=color:0xFF0000|label:"
& Totext (Counter,0) & "|" & {@Address} ;
Counter;
//Image URL
WhilePrintingRecords;
StringVar Markers;
"http://maps.google.com/maps/api/staticmap" &
"?center=" & {@FireBrigade} &
"&zoom=10 &size=545x355" &
"&visual_refresh=true" &
"&maptype=roadmap" & Markers &
"&sensor=false"

why when i declare group variable in rdlc report.group variable is not showing in expression tab

$
0
0

how to make a group according to given date wise in rdlc report. and then sum first group values with second group values and its repeat untill the last given date

i want in below format 

thank you 

DateReceiptsPaymentDescription
1-6-20175000200first branch
1-6-20174000500Second branch
1-6-20175000200third branch
SUm of 1-6-201714000900
Closing on 1-6-20171400 -900=500
2-6-2017600200first transaction
2-6-2017800200second transcation
sum of 2-6-20171400400
Closing on 2-6-2017500 +1400-400=1500

Issues with Crystal reports for VS2008 deployed on windows server 2016

$
0
0

Hello,

We have VS2008 application using crystal reports. This was deployed on windows server 2008 r2. This was working well and we don't have any issues.

We moved the application to windows server 2016. We are having issues with the crystal reports. I installed the crystal reports redistributable for VS2008 on this new server.

Whenever, i try to access the reports, i am getting the following error. How do i fix this issue?

An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

Stack Trace: 

[LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.]

   CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +241

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

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]

   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0

   CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() +18

   Transp_Mngr.rpt_DriversManifest..ctor() in C:\SVNRepo\Projects\MyProject\V0034_SVNRev487_20170721_ToFixDispatchAndManualDispatchPageSizeAndTimerIssues\Transp_Mngr\rpt_DriversManifest.vb:25

   Transp_Mngr.frm_rpt_DriversManifest2..ctor() in C:\SVNRepo\Projects\MyProject\V0034_SVNRev487_20170721_ToFixDispatchAndManualDispatchPageSizeAndTimerIssues\Transp_Mngr\frm_rpt_DriversManifest2.aspx.vb:7

   ASP.frm_rpt_driversmanifest2_aspx..ctor() +37

   __ASP.FastObjectFactory_app_web_frm_rpt_driversmanifest2_aspx_cdcab7d2__pjcvowi.Create_ASP_frm_rpt_driversmanifest2_aspx() +47

   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32

   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119

   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33

   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37

   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Thanks,

Ravi

crystal is wrong result for one of the fields.

$
0
0

I've written SQL query in command line, where I'm counting the amount ($) for employees and spouses. I ran the result on sql plus and got $270 for employees and $210 for spouses. However, when I ran the query in crystal, I got $280 for employees and $210 for spouses. I'm doing all the work in my query. In crystal, I'm just displaying the fields.

Please advise me as to what am I doing wrong here. Thanks in advance!

Below is my query.

With tb_main as

(

SELECT CLIENT, AMOUNT, ACTIVITY_TYPE, PERSON_ID, EMP_SPOUSE_ID, company

FROM MAIN

),

tb_emp as

(SELECT e.EMP_SPOUSE_ID, COUNT(e.CLIENT) OVER (PARTITION BY e.company) emp_cl, 

SUM(e.AMOUNT) OVER (PARTITION BY e.company) emp_inc, 

COUNT(e.CLIENT) OVER (PARTITION BY e.CLIENT) emp_group,

SUM(e.AMOUNT) OVER (PARTITION BY e.CLIENT) emp_inc_group,

COUNT(e.ACTIVITY_TYPE) OVER (PARTITION BY e.CLIENT) emp_act_type_group

FROM tb_main e

WHERE person_id = 11

),

tb_spouse as

(SELECT s.EMP_SPOUSE_ID, COUNT(s.CLIENT) OVER (PARTITION BY s.company) sp_cl, 

SUM(s.AMOUNT) OVER (PARTITION BY s.company) sp_inc, 

COUNT(s.CLIENT) OVER (PARTITION BY s.CLIENT) sp_group,

SUM(s.AMOUNT) OVER (PARTITION BY s.CLIENT) sp_inc_group,

COUNT(s.ACTIVITY_TYPE) OVER (PARTITION BY s.CLIENT) sp_act_type_group

FROM tb_main s

WHERE person_id = 99

)

SELECT e.emp_cl, e.emp_inc, e.emp_group, e.emp_inc_group, e.emp_act_type_group,

       s.sp_cl, s.sp_inc, s.sp_group, s.sp_inc_group, s.sp_act_type_group

FROM tb_emp e

LEFT OUTER JOIN tb_spouse s ON (e.emp_spouse_id= s.emp_spouse_id);

How do you create a stacked bar chart in Crystal report when you have the raw number you want to graph?

$
0
0

How do you create a stacked bar chart in Crystal report when you have the raw number you want to graph? < For example

Goal = 5 , Actual = 3, FY2018

Goal = 6, Actual = 7, FY2017

Goal = 8, Actual = 3, FY2016

Goal = 5, Actual = 5, FY2015

under Data

On change of : Fiscal Year and Show values : Count of Goal Count of Actual

I am not able to change to max or actual #, it only gives me a distinct cnt or a count. I am trying to create a stacked bar that shows progress against goals. 

How export Crystal Report to Text file (.txt) in ASP.net

$
0
0

I want to export crystal report to .txt in vb.net visual studio 2013 , the version crystal decision is 10.5.3700.0 

and version  my crystal report on machine Crystal Report 11 XI

 

but I don't find this format type ExportFormatType.Text ,I have ExportFormatType.(PortableDocFormat(.pdf),WordforWindows(.doc),Excel(.xls),ExcelRecord(.xls),RichText(.rtf),.crystalreport,nofrmat,Html40,Html32)

how can I added  ExportFormatType.Text to visual studio 2013 .

Can I exported crystal to .txt successfully for design report and data ?

Please Help me.

Thank's 

How can I solve this error message?

$
0
0

DEAR ALL,

I am doing my report,

i have some parameters  A person (value=0)   B person(value=1) ... ...

When i choose A person form my dropdownlist, my report can show,

but when i choose other options,

it shows   " ERROR   DATABASE LOGIN FAIL "

How can I solve it?

Thanks


Print crystal reports exported to pdf or files from andriod devices to Intermec PR3 Printer

$
0
0

I have ASP.NET project  export crystal report to pdf in Visual studio 2013 and Crystal Decision 10.5.3700.0 version

,but I cant print pdf from android devices to Intermec PR3 .

I connected via Bluetooth successfully from Android device to Printer but I can't find any app to print it successfully .

Can you help me to print pdf on Intermec PR3 on Android devices ,please?

     

Crystal Report in Webapi VS2017

$
0
0

Hi All,

I created a webapi project in VS2017 which links to Mysql database through connection string and it is working fine. The next step is I have to show the data from the webapi methods in Crystal Reports. I could not add Crystal Report in webapi project in VS2017. Suggest me anyway to pass the data source value of Crystal Report as the webapi output. Or any other way to accomplish this?

Thanks,

Durga V.

format Data Date

$
0
0

Hello developers, 

I am working with Crystal reports.  I am using Data Date (which is under special fields) on report's detail section. I need to format the Data Date to show complete date .E.g. if it is 12/31/2017, then it should show December 31, 2017, Could you please assist me how can I format that.  I tried to create a new formula on it  but no luck.

Please let me know if my question is not clear to you.

Thanks

Maximum report processing jobs limit reached. How to Cleanup Crystal Report Object in ASP.Net C#

$
0
0

I am facing a problem which is quite old "The maximum report processing jobs limit configured by your system administrator has been reached". By default, server can perform 75 print jobs, which we can alter it by regedit and change PrintJobLimit value to -1 or increase to 300 or something but it put more loads on the server.

I modified my code and try to fix by destroying the object of crystal report as bellow. It is working fine with my local PC and Page_Unload event fires after loading report and destroy the objects as expected. Report is also navigating to next, previous pages.

I would like to know:

  1. Is this a correct approach to destroy the crystal report object? will it really rid of maximum page limit problem, as it destroyed the object on Page_Unload event.

  2. PrintJobLimit by default 75. This is a daily basis limit? means resetting to 0 on daily basis to 0 or resetting to 0 on restart Server or restart IIS).

  3. Will Page_Unload event really destroy the objects even if it is defined on Class level private ReportDocument _objHrReport;

If someone can help for this please.

publicpartialclassHRReports:System.Web.UI.Page{privateReportDocument _objHrReport;protectedvoidPage_Init(object sender,EventArgs e){PrintReport();if(_objHrReport !=null){CrystalReportViewer1.ToolPanelView=CrystalDecisions.Web.ToolPanelViewType.None;CrystalReportViewer1.EnableDrillDown=false;CrystalReportViewer1.ReportSource= _objHrReport;}}privatevoidPrintReport(){
            _objHrReport =newReportDocument();
            _objHrReport.Load(Server.MapPath("/CRReports/HREmployeeReport.rpt"));
             _objHrReport.SetDatabaseLogon(Userid,Password, datasource,Database);
            _objHrReport.SetDataSource(ds);
            aConnection.Close();}protectedvoidPage_Unload(object sender,EventArgs e){if(CrystalReportViewer1!=null)CrystalReportViewer1.Dispose();CrystalReportViewer1=null;if(_objHrReport !=null){
                _objHrReport.Close();
                _objHrReport.Dispose();}
            _objHrReport =null;
            GC.Collect();}}

Need Help for crystal report setup

$
0
0

Hi Everyone,

I have created new architecture my ERP application by asp.net core 2.0 with angular js 4.0.Now I want to integrate crystal report my application.I am searching to integrate crystal report my application, but can not find any solution. how can I integrate that please tell me?

I want to load a crystal report in Crystal report viewer but with out giving a SetDataSource to ReportDocument Object

$
0
0

Hi All.

Am trying to open a Crystal report in Crystal report viewer in VS2010. I had did the earlier in VS2008( I have Shared my code below).And this code worked fine in VS208. But am trying to do the same this in VS2010 but i couldn't . And when i googled i found codes which has SetDataSource for ReportDocument Object . But where as if you see my below code which i used in VS2008 does not has to SetDataSource.  I just have to pass the parameter and Load the report. and it worked fine.Please help me out to figure out the issue as my current project is running on VS2010 and i have been told not to usesetdataSource.

ConnectionInfo crConnectionInfo = new ConnectionInfo();
ReportDocument cryRpt = new ReportDocument();
string ConnectionString = "Data Source = 10.3.2.190; Database = ERP_THOMAS; User ID = ***; pwd = ***";

string[] connections = ConnectionString.Split(';');
crConnectionInfo.ServerName = connections[0].Substring(connections[0].LastIndexOf("=") + 1, connections[0].Length - (connections[0].LastIndexOf("=") + 1)).Trim();
crConnectionInfo.DatabaseName = connections[1].Substring(connections[1].LastIndexOf("=") + 1, connections[1].Length - (connections[1].LastIndexOf("=") + 1)).Trim();
crConnectionInfo.UserID = connections[2].Substring(connections[2].LastIndexOf("=") + 1, connections[2].Length - (connections[2].LastIndexOf("=") + 1)).Trim();
crConnectionInfo.Password = connections[3].Substring(connections[3].LastIndexOf("=") + 1, connections[3].Length - (connections[3].LastIndexOf("=") + 1)).Trim();

cryRpt.Load(Server.MapPath("CrystalReport1.rpt"));

cryRpt.SetParameterValue("@id", QuotationID);

for (int i = 0; i < cryRpt.DataSourceConnections.Count; i++)
cryRpt.DataSourceConnections[i].SetConnection(crConnectionInfo.ServerName, crConnectionInfo.DatabaseName, crConnectionInfo.UserID, crConnectionInfo.Password);

CrystalReportViewer1.ReportSource = cryRpt;
CrystalReportViewer1.DataBind();

How to delete a page if sub report is blank?

$
0
0

Hello,

I have an ASP.NET application written in C# with the Crystal report. Each page of this report has a header, which always has data, and also a sub report Notes that can be blank. I don't want to show pages that have blank sub report, I need to remove them completely. Without a header this would be pretty simple, but I cannot figure out how to do this in my case.

I'd appreciate your help. Thank you.


Setting Parameters for running monthly summary for the current calendar year that carry over to the next year

$
0
0

Greetings,

I have a Crystal report that automatically runs on the 1st of the month for my customers. The goal of my report is that each month it presents them with a running monthly summary of the current calendar year. The logic below works beautifully until you get to January of the new calendar year.

UNDERLYING LOGIC (SQL)

Record_Date Between ?StartDate and ?EndDate

PARAMETERS:

?StartSTART DATE = YB

?EndDate = ME-1

So... this works great until January, which translates into an impossible range (1/1/2018 - 12/31/2017)

Thus, I am looking for code that will be able to carry these parameters across the year when January arrives.

Thanks you in advance for your suggestions / comments!

Crystal Report does not show in the web page

$
0
0

I recently upgrade from Visual Studio 2008 to Visual Studio 2017. I installed Crystal Report for Visual Studio 2017 and add the references to the application and in the web config. The report designer is working fine and I can design and test reports. I create an application folder aspnet_Client where I copied the folder crystalreportviewer13, but after all this I still can't display the report in my web pages. I there anything else that need to be done?

Please help.

Thanks.

Help extracting numbers from string field.

$
0
0

I need some help extracting numbers from a sting field.

for example if i have

Values:

A. 12a3

b. ab123

c. 015a66

i want to pull:

A. 123

B. 123

c. 01566

is there a formula to extract any numbers from a field?

Marca

Crystal Reports Sql joins

$
0
0

Crystal Reports 10.0.5

Master has record key "Case_sk"

Case Picklist table has multiple records of Case_sk as well as a group code and Item Code for each group

Group Items table has one record for each Item code, and contains "description"

How can I create a SQL Expression Field query that will pull the "Description" into my report?

How to delete the last page in Crystal report?

$
0
0

Hello,

I cannot figure out how to get rid of the last page in the Crystal report, whether in the report itself or in C# code behind it.

I know how to delete the last blank page if the report has grouping and use "Not OnLastRecord". But this is not my case, I don't have grouping, and I need to delete the last page regardless whether it's blank or not. I also know how to suppress the header on the last page and use "PageNumber=TotalPageCount", but this doesn't delete the page.

I would appreciate any help. Thank you.

Viewing all 1507 articles
Browse latest View live


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