Freeze Columns in Crystal Report
Hi All,
I have a Crystal Report which consists of some 10-15 columns in it. I want to freeze the first 2 columns so that when i scroll sideways the first 2 columns wont move.
Is there an option or formula through which i can achieve this???
Please Help,
Thanks and Regards,
NRR
What I tweeted was the "Idea". not a solution. E.g.; The SAP Idea Place is a portal where anyone can cerate a suggestion or an idea that they feel should be looked at by Program Managers in order to enhance a product functionality.If you want this idea implement, vote it up here:
https://ideas.sap.com/ct/ct_a_view_idea.bix?c=A5E8DEA8-D886-4250-BA2B-039F7D32FFC0&idea_id=CC7B528C-B7CF-440B-884C-48D0D08DE76E
The more votes, the more pressure (theoretically) on the PMs to implement it.
- Ludek
Similar Messages
-
How to Print a report with 50 columns. Crystal Reports
Dear Experts,
I'm Using Crystal Reports 2008. I have a requirement that 50 columns should be placed in a Single Report with single line . But Page size should be A4 ( While Printing).
With Page Size A4 I'm able to place 5 columns.
Is there any possibility to acheave this no matter if number of opages increases
I Appreciate for the help in this regard.
But I need to display all the 50 fields (columns) in a single report.
I Achieved this by changing horizontal width to 70.
I can Place all the fields in one line.
But my concern is to print this report in A4 Paper I think its horizontal width will be 11. from crystal reports itself
I don't want to use cross tabs nor even use sql expression. Its just a simple display report for all the employees.
is there any simple way out to Achieve this by paging... or any other method.
Any help regarding this issue will be appreciated.
ThanksHi:
I'm not a expert in crystal report, but I would like help you, i don't understand if must to show 50 diferrents fields in your report or same field through 50 columns ? for exemple:
first case: You ned diferents fields
F1 F2 F3 ... F50
item1 F1 Item1 F2 Item1 F3 Item F50
item2 F1 Ite21 F2 Item2 F3 Item F50
In this case you must put the 50 fields in the report, just enough small to fit page
second case: You nedd the same field in 50 columns
Colum 1 Colum2 Column 50
item 0 item 11 item 490
item 1 item 12 item 491
item 2 item 13 item492
item 10 item 20 item 500
inm this case i haven't idea how to make it (sorry)
Edited by: Wgramirez on May 29, 2010 7:01 PM -
Display Dynamic Columns in Crystal Report
Hello,
We are currently using Crystal Reports XI and connecting to an ADO .NET XML file as our data source. In this data souce we have a data table called IDENTIFIERS where every column, except for the ones used for joining tables is dynamic. These column will be different for each database thats its run against.
Is there any way to display these dynamic columns without having consistent column names?
You help is much appreciated.
Thanks,
AdamThanks Carl,
We do have control over the data table and a solution like this had crossed my mind. But this might not be practical for other reports that use this data table.
I think another solution would be to create a new data tabl that has all identifiers on their own row as opposed to columns.
id
dentifier
identifier_name -
Localization of CrossTab row and column label Crystal Report RPT file
Dear all,
Does anyone know how to support multiple locale texts (English and French) in CrossTab Row and Column Header labels and grand total labels? Is there a way to parameterize text objects CrossTab in one single Crystal Report RPT file to use some sort of locale resource file containing text string for different languages based on the users of RPT at runtime? The idea is to use one single RPT file to generate report for different locale text for CrossTab Row and Column abels and grand total labels instead of creating RPT files per locale?Hi,
Does the database have a column that identifies the language? If it does, then you could create two separate cross-tabs and place them in different sections and conditionally suppress the section depending on the language from the database.
That's the only thing that can be done in my opinion.
-Abhilash -
Bex Query not passing blank columns to crystal reports
good morning ladies and gentleman,
i have created a bex query that shows all employees from the master data table and links to the cats table to show absence hours...
in bex, all employees are showing and some of the employees have hours showing for sick time. very good...
i have created a report in crystal with this bex query and it does not show rows from the master data that do not have a link to the cats table. only the rows that have a link to the cats table are showing up.
the reason i need the master data from the employee table is that the users want to divide the total hours off(sick time) per department by the total employees in that department.
i have tried to create a formula that will add 1 to the hours sick field, then all the rows should have a amount in it. but, it still does not show the employees who do not have sick time.
here is the sql query from crystal.
SELECT {[Measures].[4J8L2TQJ3P517ISQ1R4Y8UZ36], [Measures].[4J9PY3UANRIW2HW15YSOED92A], [Measures].[4J9TLIO0NDQROSA2YONCW6HB6]}
ON COLUMNS,
NON EMPTY
CROSSJOIN([0EMPLOYEE].[LEVEL01].MEMBERS, [0EMPLOYEE__0COMP_CODE].[LEVEL01].MEMBERS)
DIMENSION PROPERTIES [0EMPLOYEE].[50COMP_CODE], [0EMPLOYEE].[50MAST_CCTR] ON ROWS
FROM [ZCATS_MC1/ZZCATS_MC1_Q001C]
SAP VARIABLES [0I_DAYS] INCLUDING [0CALDAY].[20100502] : [0CALDAY].[20100903]
this is kind of an emergency and i have been working on this for two days and cannot come to a resolution.
if anyone can help, i would appreciate it.
i am guessing that there is a option somewhere that will allow blank records to show.
please help.
thanks,
erikmiss stated the issue. created new note.
-
Calculation fields(column) In crystal report
Hi Experts
I have created a new report gainst A/R Invoice. Which contains DocNum, Docdate Card Name, DocTotal and Paidsum. Now I want derive balance and I want to put condtion formatting for those balance columns.
Can anyone help me How to calculate Doctotal-Paidsum to Balance column and to highlight the balance column which is more than sixty days amounts.
Waiting for ur replies.
By
Kalaiyou need to create a formula field to do this and then just drag and drop it into the report like any other column.
formula should be along these lines
{OINV.DocTotal}-{OINV.Paidsum}
as for the highlighting, just go to the designer, right click on the field you want to highlight and go to highlighting expert and follow the wizard from there to create a condition of when highlighting should occur. if your field is not available in the "Value Of" just build the field yourself as a Formula field and you will then be able to select that from the "Value Of" list.
hope it helps... -
Hiding Blank column spaces in crystal reports
Hello,
I would like to completely hide a column in crystal reports. I can hide the column details however this leaves a blank space in that column position. Is it possible to hide the blank spaces and rearrange the other columns such that no blank space will be visible ?
Kind Regards,hello Roc,
u did not mention that the hidden field will be displayed when a certain condition is meet. here is a alternative as ur workaround. make a formula field i.e
if <Condition> = true
then Display Field 1
else
Display Field 2
best regards,
Fidel -
Problem in designing multiple columns crystal report
I have got a crystal report having around 25 columns(all are test boxes) in header section.Out of these 25, I can view only 10 columns in crystal reports design window. When I view the contents as 25% I can view all the columns. Now I want to add one new column almost at the end. How can I add it. As last section of report is not under white background (visible in design window) I'm not able to do any modifications to it.
Please help....Please post questions related to using Crystal Reports on their
forums. -
CR XI R2: Crystal Reports freezes and crashes when I try to open a report
I added this question as a Reply to a message by nic2deep a month ago <Crystal Reports freezes every time I try to open a report.>, but got no response so I thought I'd try again on my own.
I have 2 laptops with CR XI installed (same problem from original R2 through SP 5). The old laptop is an IBM Thinkpad R51. The new one is an HP Elitebook 6930p. Both have the exact same software and versions of Win XP and network security.
If I try to open a report that has an "invalid printer" selected, it will open in the old IBM (with the message, 'This report uses an invalid printer. The default printer will be used instead'), but on the new HP, it freezes and I have to do a CtlAltDel to get out.
I've tried everything Don Williams suggested to nic2deep:
1) Open Contol Panel and add/remove programs and select CR. Do a repair install and if possible use the Custom Options and install all DB drivers and Export options, except Lotus Notes, unless you' re using them.
Results: Tried many times with no effect.
2) It may be that your firewall setting or anti-virus software is blocking access to system files or resources. When you do the repair install make sure to disable them and un-plug yourself from the network so you protect your PC while they are off line.
Results: Firewall was always OFF because network security handles all that. Can't turn off anti-VIrus, but both computers have the same antivirus system anyway.
3) Look in the System and Application Event logs in Admin tools; it may give you a clue what your PC is trying to get to and being denied.
Results: The only thing that is logged in Admin Tools when this happens is a "Security/Privilege Request" with no errors.
Clearly, when CR in the HP looks for the printer selected in the report and doesn't find it, that causes CR to freeze.
Any idea what difference between the 2 machines could cause this? Something in the Registry?
This is a royal pain, because I can only be on one computer at a time.
Thanks in advance.Hi Debi,
Because in CR XI R2 it is WYSIWYG meaning we use both the display and the printer drivers to render the report. Same as what PDF does. If we can't find the printer the report was designed against, and all the placements of each object is dependent on the printer when designed, we have to default to your default printer to be able to calculate internally when to render the report objects and format the layout thus the message from CR indicating so.
Basically CR dynamically builds the page layout dependent on the local system. Also the reason why CR requires a default printer to be installed, if it's not then we use Microsoft's Generic Print driver. It's not that reliable either but we have to use something.
And another "for your info" is the same for our database drivers. Example, if you create a report off of MS SQL Server and then you want to view the SQL CR generates you need to log on first. This way CR can query the DB client and generate the SQL according to the DB. If you just want to see the SQL you could just set location to Access, problem with this is because CR dynamically generates the SQL according to the DB you set lcoation to we may change the SQL Statement and not actually show you what the report uses when connecting to the real database.
One of the side effects of supporting so many DB's and Printers and Video drivers. Sometimes drivers do non-standard functionality which CR did not anticipate or code on how to handle.....
This all changed in CR 2008, we are not as dependent on the printer driver but this created a whole new set of problems if you hadn't noticed from all the Printer problems posted.... But we are going back to the CR XI R2 printer functionality model to resolve all of the issues....
Thanks again
Don -
I have created a crystal report with credit and debit column. Balance column created on the report. Report running with cummulative balance. THis report contain an option for date range. If i filtered this report its not showing the actual balance. I need
a first row to indicate previous balance as opening balance in this report. And following is the formula for balance column.
Whileprintingrecords;
Shared Numbervar balance;
Shared Numbervar display;
balance:={@debit}-{@credit};
display:=display+balance;
displayAs this question is out of the T-SQL queue, thus I would suggest you consult Crystal Report questions to the correct forums.
C#
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
VB
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
people there have more knowledge on Crystal Report. -
Crystal Report multiple columns
I'm having trouble with Crystal Report's multiple columns in the detail section.
The details section, the multiple columns is checked then the printing direction is across - down. Since the form I am using is a pre-printed form, by estimation it can only allow at best 30 records in one page, that is 15 in the 1st half of the column and another 15 records on the next. For visual:
Invoice No Invoice Date invoice total Invoice No Invoice Date invoice total
1 16
2 17
3 .
. 28
14 29
15 30
For some reason there is this giant space after the last set of rows before it prints out the page footer. This giant blank section disrupts the layout of the page footer section.
Here are some info on the details section as configuration is involved:
Format with Multiple Columns - checked
In Paging: New Page after 30 visible Records
In Layout: Width: 3.5 in Height: 0.0 in
Horizontal: 0.0 in Vertical: 0.0 in
Printing Direction: Across-Down
Anyone knows how to suppress it or have the page footer move upwards?
P.S To see actual pre-printed form, please download this [http://www.mediafire.com/i/?csu0q75mjynys2k]
Edited by: Khristine Angelei Basilla on Mar 1, 2012 8:34 AMNow why didn't I try that out. Actually, initial plan was 2 subreports.
So when I added the second subreport in the group footer section, it only prints the details on the last page, which should not be the case as I need to be printed on all pages.
I'll test it out. I'll post an update soon.
Thanks. -
Dynamic crystal report generation - issues with column headings
Hi All,<br>
I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
ReportDefController reportDefController = clientDoc.getReportDefController();
ReportObjectController reportObjectController = reportDefController.getReportObjectController();
reportObjectController.add( "{Table.Field}", "FieldName" );
<br><br>
I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
<b>The following is my dynamic crystal report generation code:</b><br><br>
public ReportClientDocument execute(String repName, String query) {
ReportClientDocument boReportClientDocument = null;
try {
boReportClientDocument = new ReportClientDocument();
boReportClientDocument.newDocument();
// Add a table based on the given Resultset to the report.
dbConnResultSet mySampleResultSet = new dbConnResultSet();
//mySampleResultSet.execute(query);
boReportClientDocument.getDatabaseController().addDataSource(
mySampleResultSet.execute(query));
IReportSource test = boReportClientDocument.getReportSource();
// Access all the database fields
DatabaseController databaseController = boReportClientDocument
.getDatabaseController();
IDatabase database = databaseController.getDatabase();
Tables tables = database.getTables();
ITable table = (Table) tables.getTable(0);
int NO_OF_FIELDS = table.getDataFields().size();
int LEFT_POSITION = 200;
// Add all the database fields to the report document
for (int i = 0; i < NO_OF_FIELDS; i++) {
IField field = table.getDataFields().getField(i);
FieldObject fieldObject = new FieldObject();
fieldObject.setFieldValueType(field.getType());
fieldObject.setDataSource(field.getFormulaForm());
IReportObject rep = (IReportObject) fieldObject;
IObjectFormat objformat = rep.getFormat();
objformat.setEnableCanGrow(true);
objformat.setHorizontalAlignment(Alignment.from_int(1));
rep.setFormat(objformat);
rep.setLeft(LEFT_POSITION);
rep.setWidth(1000);
LEFT_POSITION = LEFT_POSITION + 1000 + 50;
ISection section = boReportClientDocument
.getReportDefController().getReportDefinition()
.getDetailArea().getSections().getSection(0);
//***************** Data being added to the report here, But headings are not added*****************
boReportClientDocument.getReportDefController()
.getReportObjectController().add(rep, section, i);
boReportClientDocument.createReport();
/*Some report saving code is present down*/
} catch (ReportSDKException ex) {
ex.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
return boReportClientDocument;
<br><br>
appreciate your help.IField field = table.getDataFields().getField(i);
Here you are getting the first field in the array. This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report. It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading. -
Crystal report preview window freezes if I push any key on the keyboard
our system is a pretty old one, and we are still using crystal report 7 and vc6(mfc6).
It is a simple dialog based application with a button and a flex grid7.1 component on it.
when the button is clicked, a crystal report preview window will be opened and become the active window.
the problem is that, when i pushed a key on the keyboard ('a' for example) the whole application will freeze, and CPU Occupancy Rate is 100%.
but if I switch the dialog to be current active window after a preview window opened, keyboard input won't make the application freeze.
It seems that crystal report preview window don't know how to deal with the keyboard input.
BTW:
I use the methods below to open a preview window.
PEOpenEngine
PEOpenPrintJob
PEPrintReport
have anyone here met any similiar problems before?
I really need your help.
thanks in advance.
Edited by: zhengli on May 26, 2010 4:36 AMMoved to Legacy Application Development SDKs forum.
I have nothing for you, other than; consider upgrading - after all CR 7 shipped in 1998(!). I don't know what OS you are on, but I suspect what ever OS it is, it was not even in a concept stage of thought when CR 7 shipped. E.g.; this may be an OS issue more than anything else.
BTW., print engine APIs were retired in version 9 of Crystal Reports. At this time, your best option is to upgrade to CR 2008 (12.0)and use .NET or Java. If you are using VB 6 or equivalent, you could still upgrade to CR XI r2 (11.5) and use the Report Designer Component (RDC). However, note that CR XI r2 will be out of support in June of this year. And CR XI R2 is the last version of CR to include the RDC.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Edited by: Ludek Uher on May 26, 2010 8:28 AM -
How do add column to a Crystal report 8.5
Post Author: Jsantos
CA Forum: Data Connectivity and SQL
Hi guys, I would like some help.
I have a VB Form in VB 6 that call a report made in Crystal report 8.5 and I want add a column of a SQL Server 2000's table
inside this report called reportSales
I already Add a table inside this report clicking in Main report,......."aDD database to report..." etc.
and drag this column called col_1 to report in group Footer
my Vb 6 code is below :
When I make a Debug the variable ls_Location received the new table that I added to link 1 field.
but tha happened when I load the report is that just appear 2 columns an not 16.
With reportSales
' Conect to SQL Call .Database.LogOnServer(DLL_CRYSTAL, ls_Dsn, ls_Database, ls_Username, ls_Password) '''' manage tables
For Indice = 1 To .Database.Tables.Count Call .Database.Tables(Indice).SetLogOnInfo(ls_Dsn, ls_Database, ls_Username, ls_Password) ls_Location = "dbo." & .Database.Tables(Indice).Name Call .Database.Tables(Indice).SetTableLocation(ls_Location, Empty, Empty) Next Indice Call .ParameterFields.Item(1).ClearCurrentValueAndRange Call .ParameterFields.Item(1).AddCurrentValue(m_cod_picking)
End With
CR.ReportSource = reportSales Call CR.ViewReport Screen.MousePointer = vbDefault
thanks!!!If you still have a working install you can use regedit to get the keycode from the Local Machine key. Other than that you'll have to find the original CD packaging where you'll find the keycode on the packaging. Or check with your accounting department, they may have received an invoice with the keycode on it, I don't think we did that but worth trying.
-
Crystal Reports freezes every time I try to open a report.
Crystal Reports freezes every time I try to open a report. I feel like it has something to do with trying to locate the default printer, but Im not certain. Crystal Reports opens just fine,but the moment I try to open any report it just hangs. Please help!
My problem is very similar to this person's. I have 2 laptops with CR XI installed (same problem from original R2 through SP 5). The old laptop is an IBM Thinkpad R51. The new one is an HP Elitebook 6930p. Both have the exact same software and versions of Win XP and network security.
If I try to open a report that has an "invalid printer" selected, it will open in the old IBM (with the message, 'This report uses an invalid printer. The default printer will be used instead'), but on the new HP, it freezes and I have to do a CtlAltDel to get out.
I've tried everything Don Williams suggested, but the only thing that is logged in Admin Tools when this happens is a Security/Privilege Request" with no errors.
Clearly, when CR in the HP looks for the printer selected in the report and doesn't find it, that causes CR to freeze.
Any idea what difference between the 2 machines could cause this?
This is a royal pain, because I can only be on one computer at a time.
Thanks in advance.
Maybe you are looking for
-
Apple Video Adapter Not Working
Hi all, I have completed an update of 10.4.10 to 10.5 on my MacBook C2D without problems. I just connected my Apple Video Adapter to try out Front Row, and nothing appears on the TV! The icon appears in Displays preference pane, but nothing appears o
-
(BI 7.0) Debugging Routines in Transformation
Dear All, I would like to debug my own ABAP routine in the transformation for BI 7.0, anyone know how to set a break-point somewhere for popping up the debugging window? thanks B.R Charlie
-
Optimization of Drill Down time to Base level members
Hi All, I have built a Balance Sheet Lead Sheet in which I need to show all the Entities in rows which have values for a particular Balance Sheet Account.What I am doing is providing the Entities structure at Consolidated level and then allowing user
-
DirectX 9.0c installed, now no sou
I don't know what information you guys need to help me with this. I think it may be a Directx 9.0c driver issue, but thought I'd try you out first before losing my mind. I'm a World of Warcraft addict and had great sound with it. The new patch was in
-
Hi!! I installed Discoverer 4.1 in 11.5.9, and the tabs for Install tutorial are not available in EUL manager, whereas they were available in Vision Database for the same. Moreover for any business Area that I create, it only has the EUL definition t