How to make tree view in Crystal Reports
Hi,
We are using Crystal Reports XI R2.
In ASP.Net, we are using tree view and same that we need display in Crystal Reports for reporting purpose.
We have thee levels of records.
I know the way making group by and sub group by to show in hierarchy level.
How to achieve exact tree view in Crystal Reports as in ASP.Net
Please give me some suggestions.
Thanks and regards,
Manjunath N. Jogin
Create the report first.
Similar Messages
-
How to make Tree View sort-able-"ICCMP_INBOX/InboxItems"
Dear Expert,
Does anyone knows how to activate sort functionality in Tree View.
E. G.:
I am using the component "ICCMP_INBOX" which includes the view: "ICCMP_INBOX/InboxItems" But in the search result is is not possible in standard to sort the list as in the 'normal' List result view.
How to that?
For information my view is configured as follow:
<chtmlb:configTree id = "ItemTree"
actionsMaxInRow = "9"
nodeTable = "<%= Items->node_tab %>"
nodeTextColumn = "NODE_NAME"
onCollapseNode = "nodeCollapse"
onExpandNode = "nodeExpand"
onRowSelection = "nodeSelect"
selectionMode = "<%= Items->SELECTION_MODE %>"
selectedRowIndex = "<%= Items->selected_index %>"
selectedRowIndexTable = "<%= Items->selection_tab %>"
ajaxDeltaHandling = "FALSE"
type = "COLUMN"
table = "//Items/Table"
personalizable = "FALSE"
downloadToExcel = "FALSE"
headerText = "<%= otr(crm_ic_appl/ResultList) %>"
rowCount = "<%= controller->gv_row_count %>"
height = "100%"
iterator = "<%= Items->iterator %>"
actions = "<%= lv_buttons_tab %>"
visibleRowCount = "20" />
Thank you very much in advance.
Ahmed Hadi
Edited by: Ahmed Hadi on Oct 13, 2009 5:23 PMHi,
I "solved" my problem with using some not-used fields based on the Configuration Key. Not nice but it works.
I think it should normaly work with adding fields on structure crmst_inbox_resultlist but this is **. In other screens that solution works good.
see -> get_table_line_sample
TYPES: BEGIN OF line,
INCLUDE TYPE crmst_inbox_resultlist.
node_name TYPE string,
Anyway thanks for your reply.
Regards,
Jeroen -
How to center the content in crystal report viewer?
open crystal report viewer in winform, default at the left top
after maxmium the winform window, content become at the center
another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
then tried, content is not center any more
How to center the content in crystal report viewer in code?
Edited by: Mathew_666 on Oct 6, 2011 5:20 AMSince there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
Height
int buffer = 50;
int formHeight = 1000; // we'll assume a height of 1000 in this case
int crystalTop = buffer;
int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
Width
int formWidth = 1000; // we'll assume a width of 1000 in this case
int crystalLeft = buffer;
int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom -
How to blick tree view few specific nodes
here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
Answered by:
Avatar of Tamer Oz
20,185
Points
Top 0.5
Tamer Oz
Partner Joined Sep 2009
2
8
17
Tamer Oz's threads
Show activity
Treeview control - How to make a node blink?
Visual Studio Languages
.NET Framework
>
Visual C#
Question
Alert me
Question
Vote as helpful
0
Vote
Hi,
Is there a "elegant" way to make blink a treeview node?
I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
Friday, November 06, 2009 6:19 PM
Reply
|
Quote
|
Report as abuse
Avatar of Kikeman
Kikeman
R. BOSCH
105 Points
All replies
Question
Vote as helpful
0
Vote
Hi,
You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
public class BlinkingTreeView : TreeView
private Timer t = new Timer();
private List<TreeNode> blinkingNodes = new List<TreeNode>();
public BlinkingTreeView()
t.Interval = 1000;
t.Tick += new EventHandler(t_Tick);
bool isNodeBlinked = false;
void t_Tick(object sender, EventArgs e)
foreach (TreeNode tn in blinkingNodes)
if (isNodeBlinked)
//update Icon
tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
isNodeBlinked = false;
else
//update Icon
tn.Text = tn.Text + "*";//to test
isNodeBlinked = true;
public void AddBlinkNode(TreeNode n)
blinkingNodes.Add(n);
public void RemoveBlinkNode(TreeNode n)
blinkingNodes.Remove(n);
public void ClearBlinkNodes()
blinkingNodes.Clear();
public List<TreeNode> BlinkingNodes
get { return blinkingNodes; }
public int BlinkInterval
get { return t.Interval; }
set { t.Interval = value; }
public void StartBlinking()
isNodeBlinked = false;
t.Enabled = true;
public void StopBlinking()
t.Enabled = false;
just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanksbetter to come with code. first populate tree view with some dummy node this way
Root
Child1
Child1-sub1
Child1-sub2
Child2
Child2-sub1
Child2-sub2
now blink Child1-sub2 & Child2-sub1. please come with code. thanks -
How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9
I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the MyReport.rpt there is two subreport name :
1. MySubReport1
2. MySubReport2
My Question is :
How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
I try to using command :
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub=oRptOpen.OpenSubreport("MySubReport1")
oRptSub=oRptOpen.OpenSubreport("MySubReport2")
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
but only show Main Report (view tab name : Preview)?
Did I miss any command before I call oRptView.ViewReport?Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a> -
Error message when trying to view/print Crystal reports in B1
I get the following Error message when trying to view/print crystal reports in SAP B1/Crystal Reports Integration Tool for SAP Business One:
" Could not load file or assembly 'Crystal Decisions Windows Forms, version=12.0.2000.0, Culture=neutral, Public Key Token=692fbea551e1304' or one of its dependencies. The system cannot find the file specified. ????Hi
Common issues for this :
1. Once you install crystall add on ,you need to go to Crystal report Administration >Account setup .
Put on the user name and password and click on creating ext tables
Try then running the report .
If not the case ,
make sure you install runtime .
You need :
1.Crystal report basic from SAP download -(Not necessary if you want only report viewer >
2.You need to have crystal integration addon (I think service pack is SP1)
3.Make sure you have runtime install
When you are installing ,make sure you restart your PC before you do or remove temporary file s
Hope this solves your issue
Bishal -
Java Plugin Viewer with Crystal Reports 2008
Hello,
I am trying to use the Java Plugin Viewer with Crystal Reports, but I have some problems. The ActiveX Viewer works well, but as I want to use the reports in other browsers, I need the Java viewer.
I have a Visual Basic 6 application, and, instead of including SmartViewerActiveX.asp, I have included JavaPluginViewer.asp. I have taken this file from an older version of Crystal, and I am changing the values on it (I have done the same with the ActiveX Viewer, without problems). This is the main code of the file:
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="100%"
height="100%"
codebase="/crystalreportviewers11/JavaPlugin/Win32/j2re-1_4_2_04-windows-i586-p.exe#Version=1,4,0,0">
<param name=type value="application/x-java-applet;version=1.4">
<param name=code value="com.crystaldecisions.ReportViewer.ReportViewer">
<param name=codebase value="/crystalreportviewers11/JavaViewer/">
<param name=archive value="ReportViewer.jar">
<param name=Language value="en_US">
<param name=ReportName value="RDCrptserver11.asp">
<param name=CanDrillDown value="true">
<param name=HasExportButton value="true">
<param name=HasGroupTree value="true">
<param name=ShowGroupTree value="true">
<param name=HasPrintButton value="true">
<param name=HasRefreshButton value="true">
<param name=HasTextSearchControls value="true">
<param name=HasZoomControl value="true">
<param name=HasSearchExpert value="false">
<param name=HasSelectExpert value="false">
<param name=ShowLogo value="false">
</OBJECT>
I know how to change all the values of this object so it works with Crystal2008 except one: the codebase.
I have gone to IIS, and under the virtual folder "crystalreportviewers12" I don't see any JavaPlugin folder, there's only the JavaViewer folder, and there isn't any .exe inside...
So, where can I find the .exe for the codebase?
I have tried searching the web for a tutorial or something, but I haven't seen anything for Crystal 2008.
Can anyone help me?
Thank you very much!This is so wrong, I don't even know which forum this would belong to ( I think I'll move it to the SAP Crystal Reports, version for Eclipse topic Space...
Let's start with this:
I have taken this file from an older version of Crystal,
Don't mix versions. It will not work. Period
Next re:
I don't see any JavaPlugin folder,
If you want a Java solution, I'd recommend using CR for Eclipse which you can download from here:
SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
I would then recommend having a peek here:
CRJ SDK
Developer Help File is here:
https://help.sap.com/javadocs/cr/xi/jrc/en/overview-summary.html
Finally, I'm not sure what references you are making in your VB 6 app, but there is no SDK in CR 2008 that supports VB 6.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
https://twitter.com/SAPCRNetSup -
Step- by- Step on How to Load Excel data into Crystal Reports?
Hi Friends,
Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
VijayIt's also important to 'prep' the excel file prior to connecting to it.
Give the data tab a meaningful name
Make sure the column headers are unique and that every column has a header
Delete any blank tabs
If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text. You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
Schema.ini example:
200912PUSD.csv
ColNameHeader=True
Format=CSVDelimited
MaxScanRows=25
CharacterSet=OEM
Col1=SSN Char Width 9
Col2=LAST_NM Char Width 25
Col3=FIRST_NM Char Width 25
Col4=DOB Date
Col5=STDNT_ID Char Width 10
Col6=SORTKEY Char Width 10
Col7=SCHOOL_NM Char Width 30
Col8=OTHER_ID Integer
Col9=GRADE Char Width 2
The filename in the first line needs to have the [] brackets around it, but I couldn't get it to display in this forum correctly.
Edited by: Eric Petersen on Jan 27, 2010 9:40 AM -
How to create dynamic view in hr report category
i want to make company code mandetory in in selection screen given by logical data base PNP here i want to make field mandetory. so how to create dynamic view in hr report category.
thanks in advancesolved by self
-
Which is better to use Store Procedure or Views in Crystal Reports ?
Hi,
which one is more better to use Store Procedure or Views in Crystal Reports ?
Thanks.It depeneds on the requirement. Well, but from performance point of view as u know that stored procedures are already compiled on DB side, they would be more efficient. Views are handled differently. Here CR has nothing to do with it.
But if the stored procedure u r using is having 2 Select statements, CR will only display the results from the first select statement. In that case you need to use Views as one can use more than one views in the report and join them.
Using a Generic view which is created by the DBA for a larger audience will result in performance issues meaning if a View "V" has 25 fields and View is based on 5 tables and ur report is using only 5 fields which are coming only from 2 tables inside the view,in this case u will end up in joining 3 more tables unnecessarily.
Hope this helps! -
Using DB2 views in crystal reports with java
Post Author: Shikha Tomar
CA Forum: JAVA
Hello,
We have used DB2 views in Crystal Report 11.
We are able to view the report through crystal report tool but while using this rpt file in java application,the DB2 view is not found.
It gives an error: "table SCDC.View_report not found."
SCDC.View_report=Name of the view used in rpt
Code for calling rpt is as below:
The line marked as red gives the error:
private static void switch_tables(DatabaseController databaseController) throws ReportSDKException, IOException {
final String URI = "!com.ibm.db2.jcc.DB2Driver!jdbc:db2://"SERVERNAME":"PORT"/"DATABASE_NAME"!"+"";
final String DATABASE_DLL = "crdb_jdbc.dll";
//Obtain collection of tables from this database controller.
Tables tables = databaseController.getDatabase().getTables();
CommandTable commandTable=new CommandTable();
//Set the datasource for all main report tables.
for (int i = 0; i < tables.size(); i++) {
ITable table = tables.getTable(i);
//Keep existing name and alias.
table.setName(table.getName());
table.setAlias(table.getAlias());
//Change properties that are different from the original datasource.
table.setQualifiedName(TABLE_NAME_QUALIFIER + table.getName());
//Change connection information properties.
IConnectionInfo connectionInfo = table.getConnectionInfo();
//Set new table connection property attributes.
PropertyBag propertyBag = new PropertyBag();
//Overwrite any existing properties with updated values.
propertyBag.put("Trusted_Connection", "false");
propertyBag.put("Server Name", SERVERNAME); //Optional property.
propertyBag.put("Connection String", CONNECTION_STRING);
propertyBag.put("Database Name", DATABASE_NAME);
propertyBag.put("Server Type", "JDBC (JNDI)");
propertyBag.put("URI", URI);
propertyBag.put("Use JDBC", "true");
propertyBag.put("Database DLL", DATABASE_DLL);
connectionInfo.setAttributes(propertyBag);
//Set database username and pasword.
//NOTE: Even if these the username and password properties don't change when switching databases, the
//database password is not saved in the report and must be set at runtime if the database is secured.
connectionInfo.setUserName(DBUSERNAME);
connectionInfo.setPassword(DBPASSWORD);
connectionInfo.setKind(ConnectionInfoKind.SQL);
//connectionInfo
table.setConnectionInfo(connectionInfo);
//Update old table in the report with the new table.
databaseController.setTableLocation(table, tables.getTable(i));
Regards,
ShikhaHi,
Fo business views please reffer to [Business Views Administrator's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bv_admin_en.pdf]
Yes, Crystal Reports 2008 can consume business views.
Regards,
Ramu. -
How to handle tree view control in business one ui sdk
Hi,
Can any guide me on how to handle tree view control in business one ui sdk?
Thanking in advance.
With Regards,
Ram.Hi Ram,
Nowadays there are some trouble with the treeview controls in Windows XP SP2 as you can see here:
It is said that SAP will publish a treeview control in 2005 SP1.
Hope helps,
Ibai Peñ -
How to make a CheckBox for a report parameter?
Hi,
How to make a CheckBox for a report parameter?
thanxdesign ur parameters forms using forms and call ur report form there
-
How to make Scroll viewer zoom disable
how to make Scroll viewer zoom disable in windows store app
Hi Imtiyazk,
Thanks for sharing the solution, should help others have the same issue.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to make query base delivery monthly report link with delivery return
Hi,
I have facing some problem in Sales delivery report monthly. Problem is:
1) When i make Monthly query delivery report without any delivery return and AR Credit memo, it is Fine.
2) When i make Monthly query delivery report with any delivery return and AR Credit memo, it is not showing proper. Its showing in report including return quantity or AR Credit memo quantity.
So, How to make query base delivery monthly report link with delivery return and AR Credit Memo?
Please help me regarding this.
Mizan
Edited by: mizan700 on Dec 18, 2010 2:50 PM
Edited by: mizan700 on Dec 18, 2010 2:50 PMHi,
try this.
SELECT DISTINCt T1.CARDCODE, T1.CARDNAME , T1.DOCNUM DELIVERY#,T1.DocStatus 'DELIVERY STATUS', T1.DOCDATE 'DELIVERY Date', T1.DocTotal 'DELIVERY Total', T3.DOCNUM Return#,T3.DocStatus 'Return Status', T3.DOCDATE 'Return Date', T3.DocTotal 'Return Total',T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date', (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due', T7.DOCNUM AS 'CREDIT MEMO#', T7.DOCDATE
FROM DBO.DLN1 T0
INNER JOIN DBO.ODLN T1 ON T1.DOCENTRY = T0.DOCENTRY
LEFT JOIN DBO.RDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
LEFT JOIN DBO.ORDN T3 ON T2.DOCENTRY = T3.DOCENTRY
LEFT JOIN DBO.INV1 T4 ON T4.BASEENTRY = T1.DOCENTRY
LEFT JOIN DBO.OINV T5 ON T5.DOCENTRY = T4.DOCENTRY
LEFT JOIN DBO.RIN1 T6 ON T6.BASEENTRY = T5.DOCENTRY
LEFT JOIN DBO.ORIN T7 ON T7.DOCENTRY = T6.DOCENTRY
WHERE T1.DOCDATE >= [%0] AND T1.DOCDATE <= [%1]
Thanks,
Joseph
Maybe you are looking for
-
Sending email with message body contain data in table displayed in one
Hi, I have one jsp page where I am dispalying the table data retrieved fron database. Now i am trying to send this table as message body of the mail to the user.I am doing same stuff last from six days but unable to send such data. Please help me Sir
-
Monitoring of other domain member server
Hello, we have some servers in our LAN with another domain then our scom server. We create a scom certificate from our scom cert template with the servername.other.domain and import it with the Momcertimport.exe on the server. The entry on the Key "H
-
I'm having an issue with SmartAlbums (iPhoto 5... was in iPhoto 4, too), that is primarily related to film photos I get digitized by the store. On trips, I use 2 cameras - one color and one b&w. When I get the prints and photo cds back, the images on
-
CF not returning results of CFIF
I am trying to make website sections have a different appearance when selected. My code all works fine unless you click on the first item in the list "HOME", then it refused to return the results of any of the cfif's after it. Attached is the code an
-
How do I get rid of output.systems pop up and halt Safari?
When I open Safari it goes to output.systems and a pop up window appears with what I consider an ad to call 1--866-560-5093 to get assistance. I can't browse with Safari. How do I fix the problem. I refuse to call a ph. number to get rid of the pop