Material statistics group not showing text in report
Hi friends,
Initially i was having problem with # values for blank values in info provider,the issue is resolved by getting unassigned in place of #.Now the user wants description for all the material statistics group in the report.Like 1-do not use.2- do not use.I have activated the master data texts for the info object and also tried by using both key and text.How can i get the text values for the info object.??
Regards,
ali.
Hi friends,
now i can get the desired text and description for material statistics group. now the problem lies down here. 0mat_stgrp is an attribute of 0material. In rsa3 both in ecc as well as in bi we can see data properly for this field but in report the values are not matching. there are no conditions in report. what would be the reason for that.
waiting for the reply.\
Regards,
ali.
Similar Messages
-
While create inbound delviery Material number is not showing
Hi All,
I am trying to create inbound delivery with reference to Purchase Order.
While using BBP_INB_DELIVERY_CREATE to create inbound deliveries, the material number is not showing up in the VL33N screen but Material Description is coming.
As you have also faced same problem,can you please suggest how to resolve this issue?Your help will be highly appreciated.
Thanks
Santhu
Edited by: santosh jajur on Sep 24, 2010 12:48 PMHi,
This function module doesn't pass Material number while creating the inbound delivery. Instead you can use the function module GN_DELIVERY_CREATE along with NUMBER_GET_NEXT function module.
See line number 631 to 656 of include LBBP_SIC_40F02 (Called from Line no 18 of BBP_INB_DELIVERY_CREATE) for more details.
While using the function module BBP_INB_DELIVERY_CREATE, material number is not passed to the function module (GN_DELIVERY_CREATE) structure field XKOMDLGN-MATNR.
Regards
Vinod -
BBP_INB_DELIVERY_CREATE-material number is not showing up in the VL33N
Hi All,
I am trying to create inbound delivery with reference to Purchase Order.
While using BBP_INB_DELIVERY_CREATE to create inbound deliveries, the material number is not showing up in the VL33N screen but Material Description is coming.
As you have also faced same problem,can you please suggest how to resolve this issue?Your help will be highly appreciated.
Thanks
PriyankaHi,
This function module doesn't pass Material number while creating the inbound delivery. Instead you can use the function module GN_DELIVERY_CREATE along with NUMBER_GET_NEXT function module.
See line number 631 to 656 of include LBBP_SIC_40F02 (Called from Line no 18 of BBP_INB_DELIVERY_CREATE) for more details.
While using the function module BBP_INB_DELIVERY_CREATE, material number is not passed to the function module (GN_DELIVERY_CREATE) structure field XKOMDLGN-MATNR.
Regards
Vinod -
Option claims from CRM are not showing in BW report.
Hi All,
We are having a problem with BW report. The report shows all the claims thatt are created in CRM system( spource sys- CRM). We notices that claims that are called as option claims are not showing in BW report, but they are present in BW. I have checked filters in report design. no filters exist. Where they are getting filtered out. Please help me.
Haaris..Hi,
I am giving you ore information on the above issue, the above query is running on an infoset, I realized, data is missing from infoset. Where as the data is present in DSO.
The other thing I can see every other claim in BW, but I cannot see Option claim which are very less compared to other claims.
The infoset has four DSOs and one characteristic as components.
Please let me know if you get any idea?
Haaris. -
Safari 6.0.1 not showing in System Report (installations)
I have noticed that Safari 6.0.1 is not showing in System Report (installations) only the previous Safari 5.1.7 - Anyone know why this should be so? Now in Mountain Lion we do not have the update info in Software Update as before; only by going to "About this Mac". Any help appreciated!
Now in Mountain Lion we do not have the update info in Software Update
If you click your Apple menu icon you should see Software Update from the drop down menu.
Clicking Software Update should open the App Store for you. -
Lightroom 4.1 can not show text correctly
lightroom 4.1 can not show text correctly when publish in PDF and blurb format
the text can be show correctly in JPEG format
but lightroom 4.0 can show correctly with the same book.
i cant publish my book on blurb nowI don't think LR4 adjustments can be directly sent to CS4, because CS4 cannot interpret LR4's new processing engine.
I think you have to use Edit In... and create a TIF or PSD and send those to CS4 -
Material Document no. not showing FBL3N Report
Dear Friends ,
Please note i have an issue, which the Material No. not showing in Referecne Key3 in FBL3n ( GR/IR )report.
Thanks & regards
Josephi have get corrected as i have add special field in menu settings BKPF-AWKEY.
-
Custom Groups not showing in Reports
Hello,
Per our reporting requirement, I have created few groups in Authoring pane. However, when I am going to select those groups in reporting, its not showing up.
Env: SCOM 2012 R2.
Any help is appreciated.
Thanks,
Binoy DasHi,
It seems like that there is a sync issue/latency between the operational database and the data warehouse in your case. Groups should appear in the data warehouse within just a minute or two in most environments. Check errors and performance on
your management servers and sql servers.
Do you see any error or warning Events in the OperationsManager Windows Event log on one of the management servers which could be related to db issues?
Regards,
Yan Li
Regards, Yan Li -
Matl. Statistics group not found.....
Hi all,
I have created same material in production and development, but in development in Sales Ord. 2 View, Matl. Statistics Group filed not showing (only 3 fields showing), where as in production it is showing all fields.
How to activate that Matl. Statistics Group field and other fields in Development ? What are the settings ?
YusufYou need to activate the fields for your material type.
Check the same in the material master setting.[Transactioon 'OMS9'].
Activate the fields which you need.
Regards,
Gauravjit.
Reward points if the solution is helpful -
Material description is not showing in VL10H
Hi All,
I am running the report VL10H and facing a problem, step which is being followed by me, given below:-
1.Put plant and delivery date and execute.
2.click on label Edit -> Show/hide delivery.
3.Chose the field u201CMaterial descriptionu201D from Layout for output field.
Now here I am seeing that all the materials in this report, having SD Doc i.e. delivery has been created,
Material description is showing and remaining materials which have no delivery (showing in green color),
Material description is not being shown.
Can anybody suggest me regarding this?Tiwari Himanshu wrote:
Yes there is no issue regarding description maintained in the material master.
>
> If you run the VL10H as steps, I have given above, then you will see Material descriptions comes only those material which delivery are pending for creation, all those which delivery is posted not showing material description.
now you are just telling it the other way around:
Now here I am seeing that all the materials in this report, having SD Doc i.e. delivery has been created,
Material description is showing and remaining materials which have no delivery (showing in green color),
Material description is not being shown.
I tested it, and all my sales order and STO order items are showing a material description.
I do not have any items shown which have already deliveries created
About which description are you talking, as I can see 2, one at item level and another one at header level ? -
SPM 5.2 - problem with reason/activity fields - not showing in the report
Dear experts,
I have a situation that is hard to describe.
We have SPM 5.2 - all set and working, now the problem is that for some of the FF sessions the tool is either not reporting the reason/activity fields (due to some technical problem that is occuring randomly) or the users have found a way to abuse the fields and make thier way around them. (these fields are very important for our SOX controls)
I have created test users to see how they are entering without filling the reason/activity fields, but no luck - i couldnt enter.
As you know the Activity field is mandatory text field and at least one character must be entered, but I don`t think this is the workaround, because even if you put space the report still will show it. I have examples where the report is not showing anything.
The worst is that I can`t simulate such cases.
Have you ever heard of such nosense?
Thank you,
IliyaI think I found it - Application deficiency. It is the language that you are logged with. If it is not English the application is not recording the text that you type in the reason/activity fields upon FF session.
I hope the latest patches are fixing this!
BR
Iliya -
New Field not Showing up in Report.
I have a CR query that I am editing to add a column to my report. When I make my edits, the query runs, but I do not see the new field in the field explorer. The part in purple is what I added. Do I need to add it elsewhere in the code?
WITH SEL_ACCTS AS(
SELECT
CASE WHEN RMSCUSTTYP = 'I' THEN
CASE WHEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ',' THEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
ELSE ''
END
ELSE
RMSCMPNAME
END AS "DEBTOR NAME",
RMSACCTNUM AS "CLIENT ACCOUNT#",
case when RMSHOMEPHN = '' or RMSWORKPHN = '' or RMSFAXPHN = '' or RMSMOBLPHN = '' then 'Y' else 'N' end as skipplcmt,
A.RMSBILENUM,
RMSDATEASG AS PLC_DT,
ATTRNYCODE,
RMSGATECD As "Gate Code",
RAND() AS RANDNUMGEN
FROM
REPORTING.RMASTER As A
left join reporting.rcomker b
on a.rmsbilenum = b.rmsBilenum
WHERE
RMSDATEASG > REPLACE(CHAR(CURRENT DATE - 90 DAYS, ISO),'-','')
AND recordtype = 'D'
and ATTRNYCODE IN ({?AGCY_CODE})),
GET_ACCTS AS(
SELECT
"DEBTOR NAME",
"CLIENT ACCOUNT#",
Cast(Timestamp(plc_dt||'000000') As Date) AS "PLACED DATE",randnumgen,skipplcmt,
PLC_DT,
ATTRNYCODE,
A.RMSBILENUM
FROM
SEL_ACCTS AS A
LEFT JOIN
REPORTING.RPRDBAL AS B ON A.RMSBILENUM = B.RMSBILENUM
ORDER BY RANDNUMGEN
FETCH FIRST {?#_of_Accts} Rows Only),
GET_ACTV AS(
SELECT
G.*,
RMSTRANDTE,
ACTION_CODE,rmstrantim,
RESULT_CODE
From GET_ACCTS AS G LEFT JOIN RPTINGDATA.ROACTREACC AS R ON G.RMSBILENUM = R.RMSBILENUM AND G.ATTRNYCODE = R.ATTRNYCODE AND RMSTRANCDE = '9R'
AND (ACTION_CODE IN('1','2','3','4','5','7','14','16','22','25','26','27','29','36','44','66') OR RESULT_CODE IN ('2','14','56','58','59','60','61','62','66')) AND RMSTRANDTE >= PLC_DT )
SELECT
"DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
PLC_DT,
ATTRNYCODE,
RMSBILENUM,skipplcmt,
MIN(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTATTEMPT,
SUM(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
THEN 1 END) AS ATTEMPT#,
SUM(CASE WHEN RESULT_CODE IN ('2','56','58','59','60','61','62','66')
THEN 1 END) AS CONTACT#,
SUM(CASE WHEN RESULT_CODE = '14'
THEN 1 END) AS PROMISE#,
MIN(CASE WHEN ACTION_CODE = '44'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTMGRRVW,
SUM(CASE WHEN ACTION_CODE = '44'
THEN 1 END) as MANAGER#,
MIN(CASE WHEN ACTION_CODE = '1'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTLETTER,
MIN(CASE WHEN ACTION_CODE = '36'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTSCRUB,
max(CASE WHEN ACTION_CODE in ('1','2','14','16','22','66')
then 'Y' else 'N' end) as locateacct,
sum(case WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29') and (rmstrantim between 80000 and 100000 or rmstrantim between 180000 and 210000) and ( DAYOFWEEK(DATE (
SUBSTR ( DIGITS (rmstrandte) , 1 , 4 ) || '-' ||
SUBSTR ( DIGITS (rmstrandte) , 5 , 2 ) || '-' ||
SUBSTR ( DIGITS (rmstrandte) , 7 , 2 ) )) in (1,7) ) then 1 else 0 end) as primecall,
FROM GET_ACTV
GROUP BY
"DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
PLC_DT,
ATTRNYCODE,
RMSBILENUM,skipplcmtIt's not showing up because it's only in the first With Select - it hasn't been brought down all the way through to the final Select. Here's how you need to change it;
WITH SEL_ACCTS AS(
SELECT
CASE WHEN RMSCUSTTYP = 'I' THEN
CASE WHEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ',' THEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
ELSE ''
END
ELSE RMSCMPNAME
END AS "DEBTOR NAME",
RMSACCTNUM AS "CLIENT ACCOUNT#",
case when RMSHOMEPHN = '' or RMSWORKPHN = '' or RMSFAXPHN = '' or RMSMOBLPHN = '' then 'Y' else 'N' end as skipplcmt,
A.RMSBILENUM,
RMSDATEASG AS PLC_DT,
ATTRNYCODE,
RMSGATECD as "Gate Code",
RAND() AS RANDNUMGEN
FROM REPORTING.RMASTER As A
left join reporting.rcomker b on a.rmsbilenum = b.rmsBilenum
WHERE RMSDATEASG > REPLACE(CHAR(CURRENT DATE - 90 DAYS, ISO),'-','')
AND recordtype = 'D'
and ATTRNYCODE IN ({?AGCY_CODE})),
GET_ACCTS AS(
SELECT
"DEBTOR NAME",
"CLIENT ACCOUNT#",
Cast(Timestamp(plc_dt||'000000') As Date) AS "PLACED DATE",randnumgen,skipplcmt,
PLC_DT,
ATTRNYCODE,
A.RMSBILENUM,
"Gate Code"
FROM SEL_ACCTS AS A
LEFT JOIN REPORTING.RPRDBAL AS B ON A.RMSBILENUM = B.RMSBILENUM
ORDER BY RANDNUMGEN
FETCH FIRST {?#_of_Accts} Rows Only),
GET_ACTV AS(
SELECT
G.*,
RMSTRANDTE,
ACTION_CODE,rmstrantim,
RESULT_CODE
From GET_ACCTS AS G
LEFT JOIN RPTINGDATA.ROACTREACC AS R ON G.RMSBILENUM = R.RMSBILENUM AND G.ATTRNYCODE = R.ATTRNYCODE AND RMSTRANCDE = '9R'
AND (ACTION_CODE IN('1','2','3','4','5','7','14','16','22','25','26','27','29','36','44','66')
OR RESULT_CODE IN ('2','14','56','58','59','60','61','62','66')) AND RMSTRANDTE >= PLC_DT )
SELECT
"DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
PLC_DT,
ATTRNYCODE,
RMSBILENUM,
skipplcmt,
"Gate Code"
MIN(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTATTEMPT,
SUM(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
THEN 1 END) AS ATTEMPT#,
SUM(CASE WHEN RESULT_CODE IN ('2','56','58','59','60','61','62','66')
THEN 1 END) AS CONTACT#,
SUM(CASE WHEN RESULT_CODE = '14'
THEN 1 END) AS PROMISE#,
MIN(CASE WHEN ACTION_CODE = '44'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTMGRRVW,
SUM(CASE WHEN ACTION_CODE = '44'
THEN 1 END) as MANAGER#,
MIN(CASE WHEN ACTION_CODE = '1'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTLETTER,
MIN(CASE WHEN ACTION_CODE = '36'
THEN Cast(Timestamp(rmstrandte||'000000') As Date)
ELSE NULL END) AS FIRSTSCRUB,
max(CASE WHEN ACTION_CODE in ('1','2','14','16','22','66')
then 'Y' else 'N' end) as locateacct,
sum(case WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29') and (rmstrantim between 80000 and 100000 or rmstrantim between 180000 and 210000) and
( DAYOFWEEK(DATE (SUBSTR ( DIGITS (rmstrandte) , 1 , 4 ) || '-' || SUBSTR ( DIGITS (rmstrandte) , 5 , 2 ) || '-' || SUBSTR ( DIGITS (rmstrandte) , 7 , 2 ) )) in (1,7) )
then 1 else 0 end) as primecall,
FROM GET_ACTV
GROUP BY
"DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
PLC_DT,
ATTRNYCODE,
RMSBILENUM,
skipplcmt,
"Gate Code"
-Dell -
New Field not Showing up in Report, part II.
I had this issue with another report, and I was told that I hadn't brought my new field down all the way through to the final Select. With this report, I thought I had done just that, but the new field is still not showing up. I have pasted the code below with my additions highlighted. Can someone tell me what I am doing wrong? Thanks.
WITH SEL_ACCTS AS(
SELECT
CASE
WHEN RMSCUSTTYP = 'I'
THEN
CASE
WHEN
Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ','
THEN
Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
ELSE
END
ELSE
RMSCMPNAME
END AS "DEBTOR NAME",
RMSACCTNUM AS "CLIENT ACCOUNT#",
rmslastpmt,rmsjdgdate,
CASE WHEN RMSJDGDATE = 0 THEN (RMSCHGAMT+RMSASSCCST+RMSACRDINT+UDCCOSTS1+UDCCOSTS2)-(RMSRCVPCPL+
RMSXCSRCVS+RMSRCVDCST+RMSRCVDINT+UDCRECCS1+UDCRECCS2)
ELSE (RMSJDGCHOF+RMSJDGCSTS+RMSJDGINTS+JDGCOSTS1+JDGCOSTS2)-(JDGRECVRYS+
JDGXCSRCVS+JDGRCVCSTS+JDGRCVINTS+JDGRECCS1+JDGRECCS2)
END AS BALANCE,
A.RMSFILENUM,
RMSDATEASG AS PLC_DT,
ATTRNYCODE,
RMSSTATECD As "State Code",
RAND() AS RANDNUMGEN
FROM
REPORTING.RMASTER As A
left join reporting.rcomker b
on a.rmsfilenum = b.rmsfilenum
left join reporting.rprdbal c
on a.rmsfilenum = c.rmsfilenum
WHERE
RMSDATEASG < REPLACE(CHAR(CURRENT DATE - 180 DAYS, ISO),'-','')
AND recordtype = 'D'
and ATTRNYCODE IN ({?AGCY_CODE})),
GET_ACCTS AS(
SELECT
"DEBTOR NAME",
"CLIENT ACCOUNT#",plc_dt,
case when plc_dt > 0 then Cast(Timestamp(plc_dt||'000000') As Date) end AS "PLACED DATE",
ATTRNYCODE,
"State Code",
A.RMSFILENUM,case when rmslastpmt > 0 then Cast(Timestamp(rmslastpmt||'000000') As Date) end as rmslastpmt, rmsjdgdate,balance
FROM
SEL_ACCTS AS A
ORDER BY RANDNUMGEN
FETCH FIRST {?#_of_Accts} Rows Only),
financials as (
select "DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
a.ATTRNYCODE,
A.RMSFILENUM,rmslastpmt,case when rmsjdgdate > 0 then Cast(Timestamp(rmsjdgdate||'000000') As Date) end as rmsjdgdate,balance,
sum(case when e.rmstrancde between '3A' and '39' or e.rmstrancde in ('1G','1U') then e.rmstranamt end) as costspent,
sum(case when (e.rmstrancde between '5A' and '69' or e.rmstrancde = '1P') and postdate > rmsjdgdate then
e.rmstranamt
end) as pmtamt,
sum(case when e.rmstrancde = '5C' then e.rmstranamt end) as costrecvd
from get_accts a
left join reporting.rfinanl e
on a. rmsfilenum = e.rmsfilenum
and (e.rmstrancde between '3A' and '69'
or e.rmstrancde in ('1P','1G','1U'))
and postdate > plc_dt and a.attrnycode = e.attrnycode
group by
"DEBTOR NAME",
"CLIENT ACCOUNT#", "PLACED DATE",
a.ATTRNYCODE,
A.RMSFILENUM,rmslastpmt,case when rmsjdgdate > 0 then Cast(Timestamp(rmsjdgdate||'000000') As Date) end ,balance )
select "DEBTOR NAME",
"CLIENT ACCOUNT#",
"PLACED DATE",
"State Code",
a.ATTRNYCODE,rmslastpmt, rmsjdgdate,balance,c.rmsbalance as plc_bal,costspent, pmtamt,costrecvd,
Cast(Timestamp(max(case when b.hstnewvalu in ( 'L31') then b.rmstrandte else null end)||'000000') As Date) as servicedate,
Cast(Timestamp(max(case when b.hstnewvalu in ( 'L13','P13') then b.rmstrandte else null end)||'000000') As Date) as garnishdate,
Cast(Timestamp(max(case when b.hstnewvalu in ( 'L14','P14') then b.rmstrandte else null end)||'000000') As Date) as levydate,
Cast(Timestamp(max(case when b.hstnewvalu in ( 'L17','P17') then b.rmstrandte else null end)||'000000') As Date) as suitfiledate,
Cast(Timestamp(max(case when b.hstnewvalu in ( 'L12','P12') then b.rmstrandte else null end)||'000000') As Date) as liendate
from financials a
left join reporting.rhistfl b
on a.rmsfilenum = b.rmsfilenum
and b.RMSTRANCDE = 'MT' And b.RMSFLDIMPL = 'RMSSTATUS'
and b.hstnewvalu in ('L12','L13','L14','L17','P12','P13','P14','P17','L19','PJC','L31')
left join reporting.rhistfl c
on a.rmsfilenum = c.rmsfilenum
and c.RMSTRANCDE = 'MR' AND c.RMSFLDIMPL = 'ATTRNYCODE' and c.hstnewvalu in ({?AGCY_CODE})
group by
"DEBTOR NAME",
"CLIENT ACCOUNT#", "PLACED DATE",
a.ATTRNYCODE,rmslastpmt,rmsjdgdate ,balance,c.rmsbalance,costspent, pmtamt,costrecvd, "State Code"hi David,
some questions:
1) do you mean that statecode is not showing up in the Field Explorer?
2) if you run this through your db query tool, what is the result?
3) if you create a new report off of this syntax, what is the result?
-jamie -
Records Not Showing Up On Report
I'm using Crystal XI
I can take the query from "Show SQL Query..." and paste it into a query screen in SQL Server 2008 management studio and retrieve the correct records. However, the report itself does not contain all the records the should have been returned.
To the best that I can figure, the records where a transaction date (date/time field) is null is not showing up on the report. I only display the field, do not do any calculations based on the field.
It is part of the record selection formula, where I test for the field to be between start/end parameters or is null (which produces the correct SQL query as I stated above)
So why are the records not showing up on the report, and more importantly, how do I get them to show up?
TIAIt already was set to "Exception for Nulls"
On the other hand, just on a whim, I tried reversing the order of the query from what it was:
{MyQuery.Company = {?Company}
And
{MyQuery.Transaction_Date} In {?Start/End Date}
Or
IsNull({MyQuery.Transaction_Date})
To:
{MyQuery.Company = {?Company}
And
IsNull({MyQuery.Transaction_Date})
Or
{MyQuery.Transaction_Date} In {?Start/End Date}
And that seemed to work. I'm not sure why it will work in the Mangement Studio, but not in Crystal Reports, but at least it works.
Thanks for the tug in the right direction. -
Report Document not show on Crystal Report Viewer in C#
My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
Here is my code.
// report caller form.
private void Print()
CrystalReportForm rptForm = new CrystalReportForm();
string[] strtbl;
strtbl = new string[1];
string[] strqry;
strqry = new string[1];
// prepare var
string myqry;
string myrpt;
// Pass The Table That you used in the crystal Report
strtbl[0] = "r_receipts";
// Pass the Query
myqry = "SELECT * FROM r_receipts";
myrpt = "rptReceipts.rpt";
strqry[0] = myqry;
//Pass For Mdi True
rptForm.MdiParent = this.ParentForm;
rptForm.ViewReport(myrpt, strtbl, strqry, "");
//Parameter Value It is Optional
rptForm.Show();
// Crytal Report Viewer form.
public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
//Me.MdiParent = mainpage;
if (TableName.Length != QueryString.Length )
MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
CrystalDecisions.Windows.Forms.CrystalReportViewer crv = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
crv.ActiveViewIndex = 0;
crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
crv.Dock = System.Windows.Forms.DockStyle.Fill;
crv.Location = new System.Drawing.Point(0, 0);
crv.Name = "CrystalReportViewer";
MySqlDataAdapter at =new MySqlDataAdapter();
DataSet ds = new DataSet();
for (int i = 0; i < TableName.Length; i++)
at = GetDataAdeptor(QueryString[i]);
at.Fill(ds, TableName[i]);
string rptPath = "";
rptPath = Application.StartupPath + "\\" + ReportName;
rpt.Load(rptPath);
rpt.SetDataSource(ds);
if (Parameter != "")
rpt.SetParameterValue(0, Parameter);
crv.ReportSource = rpt;
crv.Refresh();
//CrystalReportViewer.DataBind();
//Me.Panel1.Controls.Add(CrystalReportViewer);
Panel panel1 = new Panel();
panel1.Controls.Add(crv);Hi Bhushan,
It's not yet fixed. My dataset (ds) can't bine to DataGridView as
DataGridView1.DataSource = ds
But it could do like this
DataGridView1.DataSource = ds.Tables[0];
When I bine to Crystal Report Viewer setdatasource
CrystalReportViewer1.setdatasource = ds.Tables[0];
It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
Thank,
Chaiwat
Maybe you are looking for
-
How to synch two different devices with two different Apple ID's without merging them?
I have an iPhone 5 and iPad linked to my Apple id. My son just got his first iPod touch with his own Apple id. We use the same PC to backup and synch our devices. The problem I have is since he got his iPod touch, all his downloads get installed on m
-
I am running Firefox version 3.6.23 and I keep getting a message saying that I should upgrade, but I am working on an older MacBook laptop computer with 640 MB of memory and an 800 MHz Power PC G4 with Mac OS X version 10.4.11 and when I tried to upg
-
Combuter boots into script mode! How do I perform regular start up?
I was on my computer (ibook G4) when the screen went black. It was still lit, but completely black. After closing it and opening it a few times, nothing changed, so I turned it off. When I booted it back up again, it booted into the manual, black scr
-
Viewing the bottom of a spreadsheet when opened
When I open my file, which has pages and pages, I want to be able to open the file and it automatically go to the bottom (or cells that were last entered in). In excel it did it.
-
Use SIA service account for SQL Server reporting connections (BIP4.1)
Is it possible to use the SIA service account as a proxy for a SQL Server connection using OLE DB? This way, anytime a report was refreshed, the SIA service account would be used when authenticating to the reporting database? This is a common pattern