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

Formula Error

$
0
0

Hi

   Below code is giving error

 Ledger From : {?@frDate} + 'To : ' + {?@toDate}

Thanks


Page No 1 Of 10

$
0
0

Hi

  In page header i want to write like this Page No 2 of 10 where 2 & 10 will be dynamic 

Thanks

How to show Balance

$
0
0

Hi

  I have below report & i want to show Balances + Dr/Cr. On Change of Customer No group reset to 0

Customer No :		1					
			Debit	Credit		Balance	
						500	Dr
1	02-11-2019		1000	0.00		1500	Dr
2	02-11-2019			9039.60		7539.6	Cr
3	02-11-2019			12510.00	20049.60Cr
4	02-11-2019			5680.08		25729.68Cr
5	02-11-2019			9565.16		35294.84Cr
6	02-11-2019			27576.00	62870.84Cr
7	02-11-2019			21898.80	84769.64Cr
8	02-11-2019			32.00		84801.64Cr
9	02-11-2019			10378.80	95180.44Cr
			1000	96680.44		95180.44Cr

Thanks

Reset formula value

$
0
0

Hi

How to reset formula value Amount,Debit,Credit to 0 on change of group . Secondly i want to print Amount value

whileprintingrecords;
CurrencyVar Amount;
CurrencyVar Debit;
CurrencyVar Credit;
stringVar Dr_Cr;

if {spGeneralLedger0;1.Dr_Cr} = "Cr" then
Credit := Credit + {spGeneralLedger0;1.Credit} + {spGeneralLedger0;1.Balance};
if {spGeneralLedger0;1.Dr_Cr} = "Dr" then
Debit := Credit + {spGeneralLedger0;1.Debit} + {spGeneralLedger0;1.Balance};

if Debit > Credit then
Amount := Debit - Credit;
if Debit < Credit then
Amount := Credit - Debit;

Thanks

Formula

$
0
0

Hi

  I have below formula and i want if Balance = 0 then '' should be displayed.

Thanks

Date Formula

$
0
0

Hi

  I have below code . I want that only Date should be displayed & in dd/MM/yyyy format.

"Ledger From : " & {?@frDate} & " To " & {?@toDate}

Thanks

Service Pack for CR for .NET 2005 ?

Error is coming after Publishing webApplication on hosting server ,on crystal report

$
0
0

having this error after publishing my web application on Hosting server 

<div>Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).</div> <div>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.</div> <div> </div> <div>Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).</div> <div> </div> <div>ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.</div> <div> </div> <div>To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.</div> <div> </div> <div>Source Error:</div> <div> </div> <div>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</div> <div> </div> <div>Stack Trace:</div> <div> </div> <div> </div> <div>[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).]</div> <div>   CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()+298</div> <div> </div> <div>[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]</div> <div>   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()+38</div> <div>   TechnoBI.Reports.Form.ReportForm.Page_Load(Object sender, EventArgs e) in d:\Projects\TechnoBI\TechnoBI\Reports\Form\ReportForm.aspx.cs:22</div> <div>   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51</div> <div>   System.Web.UI.Control.OnLoad(EventArgs e) +95</div> <div>   System.Web.UI.Control.LoadRecursive() +59</div> <div>   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678</div>

Select Expert

$
0
0

Hi

  Select Expert has 2 options -> Record  , Group. What is the difference between the 2

Thanks

If Syntax

$
0
0

Hi

  Is the below correct Syntax

If {@Amount} < 0 Then "Cr";
If {@Amount} > 0 Then "Dr";
If {@Amount} = 0 Then "";

Thanks

Formula Value

$
0
0

Hi

  I have below formula . I want  if Amount is + ve then 'Debit' , if -ve than 'Credit' , if  0 then '' in another column.

WhilePrintingRecords;
CurrencyVar Amount;
Amount := Amount + {spGeneralLedger0;1.Debit} - {spGeneralLedger0;1.Credit};

Thanks

Error - A number,currency amount,boolean,date,time,date-time or string is required here

$
0
0

Hi

  I am getting above error on {?Date Range}

"Ledger From : " & {?Date Range}

Thanks

Parameters

$
0
0

Hi

  I have 2 stored Procedures in DataBase Expert. I have 3 parameters Date From , Date To , Dropdown . Sometimes when i remove particular field from Report then it does not ask for Date From & Date To parameter. It asks for only Dropdown parameter

Thanks

Prompt for Spcific data or all

$
0
0

I have a report that is driven by a stored procedure prompting for invoices generated for customers for a specific year. Prompt is Year.

The new request is to select a specific sales reps customers or all.

Easy to make a list of available reps but I would have to maintain the list if we have new reps come on board.

Hoping to make a dynamic prompt using the existing sales rep table. 2 issues came up.

1) need a way to account for All reps which I can't find a way to do using the Crystal Reports dynamic parameter

2) I get prompted for the year the store procedure requires after pressing enter a new screen pops up prompting for the rep select AND the year again which I entered on the first prompt.

I would insert a screen shot here but can't seem to figure out how

Orange symbol in front of Parameter

$
0
0

Hi

    What does Orange symbol mean in front of Parameter. I have 3 parameters against 2 it is showing . Against 1 it is not showing

Thanks


Detail Lines not getting printed

$
0
0

Hi

  I have below query . Since there is no record in Database it should display 2 lines since i have specified no record exists condition in query

If OBJECT_ID('TempDB.dbo.#GST_Report_GSTR3B_Exempt_Details') Is Not Null
	begin
		Drop Table #GST_Report_GSTR3B_Exempt_Details
	end
	select DocEntry,LineNum,DocNum,DocDate,CardName,LocGSTN,BaseSum,ItemTaxType,IsIntraState
	into #GST_Report_GSTR3B_Exempt_Details
	from (select distinct DocEntry,LineNum,DocNum,DocDate,CardName,LocGSTN,
	case when ObjType = 19 then -BaseSum
	else BaseSum end as BaseSum, ItemTaxType, IsIntraState
	from GST_ODOC_Result_Ignore_RvsCharge t0
	where ObjType in (18, 19)
	and ItemTaxType = 'GN'
	and PureNilRateDoc = 'Y'
	and BpGSTType <> 3
	and DocDate >= {?frDate}
	and DocDate <= {?toDate}
	and LocGSTN = '{?locGSTN}'
;

	with
	CTE1 as
	(
		select DocEntry,LineNum,DocNum,DocDate,CardName,LocGSTN,
		'From a supplier under composition scheme, Exempt and Nil rated supply' as "Nature of Supplies",
		convert(numeric(19, 2), isnull((case when IsIntraState <> 'Y' then BaseSum else 0 end), 0)) as "InterState",
		convert(numeric(19, 2), isnull((case when IsIntraState = 'Y' then BaseSum else 0 end), 0)) as "IntraState"
		from #GST_Report_GSTR3B_Exempt_Details
		where ItemTaxType <> 'NN'

        union all

		select 0,0,'','','','','From a supplier under composition scheme, Exempt and Nil rated supply',0,0
        where not exists
		(select 1 from #GST_Report_GSTR3B_Exempt_Details where ItemTaxType <> 'NN')
	),

	CTE2 as
	(
		select DocEntry,LineNum,DocNum,DocDate,CardName,LocGSTN,
		'Non-GST supply' as "Description",
		convert(numeric(19, 2), isnull((case when IsIntraState <> 'Y' then BaseSum else 0 end), 0)) as "InterState",
		convert(numeric(19, 2), isnull((case when IsIntraState = 'Y' then BaseSum else 0 end), 0)) as "IntraState"
		from #GST_Report_GSTR3B_Exempt_Details
		where ItemTaxType = 'NN'

        union all

		select 0,0,'','','','','Non-GST supply',0,0
        where not exists
		(select 1 from #GST_Report_GSTR3B_Exempt_Details where ItemTaxType = 'NN')
	),

	CTEU as
	(
		select * from CTE1
		union all
		select * from CTE2
	)

	select * from CTEU

Thanks

Parameter

$
0
0

Hi

  I am trying to add Parameter using Modify Command but it is not getting saved . Secondly Orange symbol not appearing in front of Parameter in Parameter fields.

Thanks

nearest whole number

$
0
0

Hi

    How to round off field to nearest whole number. I have value say 50384.68 . I want it to displayed as 50385.00

Thanks

Error - A Boolean is required here

$
0
0

Hi

  I am trying below condition in formula but it is giving above error

NOT({Command.IGSTRate}) > 0

Thanks

Crystal Report viewer navigation buttons not working

$
0
0

Working in Visual Studio 2008 and using the packaged Cystal Reports (version 10.5). I have a couple pages that use the Crystal Reports Viewer to display the reports, and I use the CRV navigation buttons to page through large reports.

Problem: The Next button only goes to page 2. The Previous button goes to Page 1 every time.

I've read that this is because the binding of the report occurs in the Page_Load() and the CRV paging resets every time the report is rebinded. It was suggested to move this into Page_Init() which should only fire once, save the report in Session state, and then rebind on post backs. I've tried this, but my code never seems to reach the Page_Init(). In fact, I don't even see Page_Init() as an option. I've tried protected override OnInit(), but it fires every post back so that's no good.

Does anyone have suggestions for a solution?

Where is Page_Init() in Visual Studio 2008?

 Thanks for any help.

 -Robert

 

 

Viewing all 1507 articles
Browse latest View live


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