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.
Similar Messages
-
How to add electronic signatures to crystal report?
All-
I need to add a .bmp (electronic signature) to the bottom of my Crystal PO form. I want to use .bmp files located in a specific folder. I see a Format graphic option and an area to enter a location, but can't seem to get it to work. How do I insert a picture that is not just inserted into the form, but rather use a specific .bmp file in a specific location. I need to put in an electronic signature of different people based on certain criteria. Is there a way to do this?
Thanks in advance.. Pat1. First, you need to have a default picture. I normally have an empty .jpg , let's call it Empty.jpg
2. Assuming you insert different signature .bmp based on in VendorCountry
3. Following this steps:
- Insert Empty.jpg into the PO fom
- right click on the picture in crystal report, and click Format grapic
- In the picture tab, you can find the field Graphic Location
click on the blue pen on the right, then put in the condition as you want.
If VendorCounty = 'US' then
C:\abc.jpg
else if VendorCounty = 'AU' then
C:\zzz.jpg
else
c:\empty.jpg -
Crystal 2008 How to Add a stylesheet to a report?
Crystal 2008 How to Add a stylesheet to a report?
I have no idea where to start:
- Dont know how to link css to report
- Dont know how to format different fields etc
Please help.Hello,
Hit the F1 key in CR Designer and then search on StyleSheet and it will give you info on to.
Thank you
Don -
How to add column dynamically based on user input in oracle?
**how to add column dynamically based on user input in oracle?**
I am generating monthly report based on from_date to to_date below is my requirement sample table
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12
100001.............John...........02-OCT-12...............6
100002.............chris...........01-OCT-12...............4
Based on user input, that is, if user need the report from 01-OCT-12 TO 03-OCT-12, i need to add that dates as column in my table, like 01-OCT-12 | 02-OCT-12 | 03-OCT-12....
below is my code
create or replace
procedure MONTHLY_LVE_NEW_REPORT_demo
L_BUSINESS_UNIT IN SSHRMS_LEAVE_REQUEST_TRN.BUSINESS_UNIT%TYPE,
--L_LEAVE_TYPE_CODE IN SSHRMS_LEAVE_REQUEST_TRN.LEAVE_TYPE_CODE%TYPE,
L_DEPARTMENT_CODE IN VARCHAR2,
--L_MONTH IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_FROM_DATE IN SSHRMS_LEAVE_REQUEST_TRN.LVE_FROM_DATE%TYPE,
L_TO_DATE in SSHRMS_LEAVE_REQUEST_TRN.LVE_TO_DATE%type,
MONTHRPT_CURSOR OUT SYS_REFCURSOR
AS
O_MONTHRPT_CURSOR_RPT clob;
v_return_msg clob;
BEGIN
IF (L_BUSINESS_UNIT IS NOT NULL
AND L_FROM_DATE IS NOT NULL
and L_TO_DATE is not null
-- AND L_DEPARTMENT_CODE IS NOT NULL
THEN
OPEN MONTHRPT_CURSOR FOR
select EMPLOYEE_CODE, EMPLOYEE_NAME AS NAME, DEPARTMENT_CODE AS DEPARTMENT,DEPARTMENT_DESC, CREATED_DATE,
NVL(WM_CONCAT(CL_RANGE),'') as CL_TAKEN_DATE,
case when NVL(SUM(CL2),0)<0 then 0 else (NVL(SUM(CL2),0)) end as CL_BALANCE,
from
SELECT DISTINCT a.employee_code,
a.EMPLOYEE_FIRST_NAME || ' ' || a.EMPLOYEE_LAST_NAME as EMPLOYEE_NAME,
a.DEPARTMENT_CODE,
a.DEPARTMENT_DESC,
B.LEAVE_TYPE_CODE,
B.LVE_UNITS_APPLIED,
B.CREATED_DATE as CREATED_DATE,
DECODE(b.leave_type_code,'CL',SSHRMS_LVE_BUSINESSDAY(L_BUSINESS_UNIT,to_char(b.lve_from_date,'mm/dd/yyyy'), to_char(b.lve_to_date,'mm/dd/yyyy'))) CL_RANGE,
DECODE(B.LEAVE_TYPE_CODE,'CL',B.LVE_UNITS_APPLIED)CL1,
b.status
from SSHRMS_EMPLOYEE_DATA a
join
SSHRMS_LEAVE_BALANCE C
on a.EMPLOYEE_CODE = C.EMPLOYEE_CODE
and C.STATUS = 'Y'
left join
SSHRMS_LEAVE_REQUEST_TRN B
on
B.EMPLOYEE_CODE=C.EMPLOYEE_CODE
and c.EMPLOYEE_CODE = b.EMPLOYEE_CODE
and B.LEAVE_TYPE_CODE = C.LEAVE_TYPE_CODE
and B.STATUS in ('A','P','C')
and (B.LVE_FROM_DATE >= TO_DATE(L_FROM_DATE, 'DD/MON/RRRR')
and B.LVE_TO_DATE <= TO_DATE(L_TO_DATE, 'DD/MON/RRRR'))
join
SSHRMS_LEAVE_REQUEST_TRN D
on a.EMPLOYEE_CODE = D.EMPLOYEE_CODE
and D.LEAVE_TYPE_CODE in ('CL')
AND D.LEAVE_TYPE_CODE IS NOT NULL
group by EMPLOYEE_CODE, EMPLOYEE_NAME, DEPARTMENT_CODE, DEPARTMENT_DESC, CREATED_DATE
else
v_return_msg:='Field should not be empty';
end if;
END;
my code actual output
EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE
100001....................John............02-OCT-12.................6
100001....................chris...........01-OCT-12.................4
how to add column dynamically based on from_date to to_date?
Thanks and Regards,
Chris Jerome.You cannot add columns dynamically. But you can define a maximum number of numbers and then hide unused columns in your form useing SET_ITEM_PROPERTY(..,VISIBLE, PROPERTY_FALSE);
-
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 we add & grandtotal of sales order report in alv
hi guru how we add & grandtotal of sales order report in alv
regards
subhasishi subhasis,
since u want the grand total in ALV use the following code...
clear gs_fieldcat.
gs_fieldcat-fieldname = field.
gs_fieldcat-tabname = DB table
gs_fieldcat-seltext_m = text.
gs_fieldcat-do_sum = 'X'
gs_fieldcat-datatype = data type (Curr or Quant)
gs_fieldcat-ref_fieldname = reference field name
gs_fieldcat-ref_tabname = reference table name
append gs_fieldcat to gt_fieldcat.
hope this will work...
please reward points in case usefull
regards,
prashant -
Reg:HOw to add new charactersitics in standard report
hi all
HOw to add new charactersitics in standard report
regards
JK RaoYou need to copy the std report and make necessary changes in the copied report. SAP does not allow changes to std report. The technical details of the report can be seen by selecting from the menu Extras - technical information. Select the library and Report name. Copy the same using t code GRR1. Carry out necessary changes and SAVE. Before execution, you will have to specify the report group in which report needs to be attached. You can choose and existing group or specify a new one.
Regards
Rakesh Pawaskar -
How to add company logo in z report
Hi !
i want to know how to add company logo into custom report ...
generally we used below mentioned code for sap logo
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LIST[]
I_LOGO = 'ENJOYSAP_LOGO'.
ENDFORM. "top_of_page"
what changes we need to do to add company logo into custom report
Please guide
Regards
SheetalFirst upload ur required logo in SAp by t-code SE78.
Use teh above mentioned ALV code for the same.
Try to search on SDN for the u can find the full ALV code for the same.
..lakhan -
How to add search help to a report.
How to add search help to a report.
Hi
It can use the event AT SELECTION-SCREEN ON VALUE REQUEST:
PARAMETERS: P_FIELD LIKE ....
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FIELD.
* Here it needs to insert the abap code to call the search help,
* for example it can call fm F4IF_FIELD_VALUE_REQUEST
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = SPACE
SEARCHHELP = <SEARCH HELP>
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_FIELD'.
Max -
How to hide Group Tree in Crystal Report Server.
Hi all visitors
i have created one crystal report and my report use group to summary the amount of each day.
after i use group to summary, i used text box cover the group. so my group can't click anything.
After that i upload my report to crystal report server, when i viewed my report and when i click on Group Tree, it will show the list of group (group date in crystal report) and it also can click. I don't want to show the Group Tree in Crystal Report Server.
Anybody know how to hide group tree in crystal report server?
Best Regards,Are you talking custom application, or infoview? If it is custom app, you would have to look at the setToolPanelViewType method. if its infoview, no direct way to change this that i know of.
-
Column limits for Crystal Reports for Eclipse
Hi ,
Is there any column limits for Crystal Reports for Eclipse. While i am trying in my environment, if i am include more than 18 columns its wont show the preview as well as it throws error like as follows "java.lang.NullPointerException at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991) at java.lang.Double.valueOf(Double.java:447) at oracle.sql.NUMBER.toDouble(NUMBER.java:326) at oracle.jdbc.dbaccess.DBConversion.NumberBytesToDouble(DBConversion.java:2975) at oracle.jdbc.driver.OracleStatement.getDoubleValue(OracleStatement.java:4485) at oracle.jdbc.driver.OracleResultSetImpl.getDouble(OracleResultSetImpl.java:567) at com.crystaldecisions.reports.common.data.JdbcCrystalResultSet.getDouble(Unknown Source) at com.businessobjects.reports.jdbinterface.common.ResultSetReader.readColumnValue(Unknown Source) at com.crystaldecisions.reports.queryengine.ResultSetRecordReader.a(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.a(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetColumn.xL(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.z1(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.bN(Unknown Source) at com.crystaldecisions.reports.queryengine.Rowset.bI(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetBase.bJ(Unknown Source) at com.crystaldecisions.reports.queryengine.RowsetBase.za(Unknown Source) at com.crystaldecisions.reports.datalayer.a$e.za(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.w(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.p(Unknown Source) at com.crystaldecisions.reports.basicdataengine.a.a(Unknown Source) at com.crystaldecisions.reports.datalayer.a.do(Unknown Source) at com.crystaldecisions.reports.datalayer.a.a(Unknown Source) at com.crystaldecisions.reports.dataengine.m.b(Unknown Source) at com.crystaldecisions.reports.dataengine.j.b(Unknown Source) at com.crystaldecisions.reports.dataengine.m.o(Unknown Source) at com.crystaldecisions.reports.dataengine.m.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source) at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source) at com.crystaldecisions.reports.dataengine.j.case(Unknown Source) at com.crystaldecisions.reports.dataengine.h.(Unknown Source) at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source) at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fl(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source) at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.A(Unknown Source) at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source) at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$_B.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)".
But i removed any one column, it wont make any problem and able to preview. Whenever put more than 18 columns, its throwing issue. Can you please help me to identify the issue.
Regards, SibyHi,
Are you talking about the fields coming from the Data Source Explorer?.
If "Yes" then there is no such limits.
Are you able to run the report through the eclipse designer?
Thanks,
Neeraj -
Get error when add new object in crystal report
hi
i have this error "You are attempting to use functionality that falls under the Crystal Decisions Report Creation API license. This system does not have a valid license, or the evaluation copy of the license has expired. Please contact Crystal Decisions to obtain a Report Creation API license."
when i add new object in crystal report with vb.net
""CRReport.Sections.Item(ii).AddTextObject("new text", 1000, 0)
i do same program for 3 months ago but i lost it work without error
ihave a license key for crystal report
use cr10 with vb.net 2005
can help me
thanksAlso, check out the blog [Use of the Report Designer Component (RDC) in VS .NET|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID0468837450DB00359707053703393347End?blog=/pub/wlg/15939].
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
How to add Column to Adobe flex mx:DataGrid in mxml and/or actionsctpt?
I have simple mxml code
<mx:DataGrid id="DGG"
editable="true">
<mx:dataProvider>
<mx:Object scheduledDate="4/1/2006"/>
</mx:dataProvider>
</mx:DataGrid>
<mx:Button id="SetBut"
label="Set Array as Data Provider"
click="SetDP(); AddBut.visible = true;"
x="100.5"
y="164"
width="211"/>
<mx:Button id="AddBut"
label="Add a column!"
click="AddCol();"
x="100.5"
y="194"
width="211"
visible="false"/>
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.ArrayCollection;
[Bindable]
public var MyAC:ArrayCollection=new ArrayCollection([{scheduledDate: "4/1/2006", homeTeam: "Chester Bucks"}]);
public function SetDP():void
DGG.dataProvider=MyAC
public function AddCol():void
MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
DGG.columns.push(new DataGridColumn("Umpire"));
]]>
</mx:Script>
I want to add rows to my table datagrid how to do such thing?
How to add Column to Adobe flex mx:DataGrid in mxml and/or actionsctpt?
(You can put this code in Flash or AIR app - it will compile with no errors, but will not add any columns=( )Change this:
public function SetDP():void
DGG.dataProvider=MyAC
MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
public function AddCol():void
var dgc:DataGridColumn = new DataGridColumn("Umpire");
var ca:Array = DGG.columns;
ca.push(dgc);
DGG.columns = ca;
Dany -
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 add a button as a report column
Hi everyone,
I am trying to add a button in a report as a column, thus, as the button press, one of column at current row of the report will be filled. Does anyone know how to do it?
I knew I can do check box as a report column and create a button to process it But request hopes just one button for each row as result.
Thanks!
XWI am not sure what you are trying to do exactly. Adding a button is something you can do for sure in a report ( make the PK column a link and define the link image as a button ), but am not sur what you want the button to do, is it something like <edit> that when you click on it it takes you to another page (form) to edit that record info ? if yes then this is also doable for sure....let me know
Sam
Maybe you are looking for
-
Importing Nav Bar from Fireworks
Hi I am using Dreamweaver MX and Fireworks MX (i know i need to update ) anyway. I made a navigation bar in fireworks, using slices, pop-up menus, roll-over behaviors and stuff. (Im a beginner don't know exactly what's going on hehe.) When i preview
-
Bad Optical Drive Replaced with a New MacBook Black!
Hello, I just wanted to write and let you all know of my 1st experience buying a Mac computer. I needed a laptop, so I decided on the MacBook. I saw BH Photo had some 1st generation Macbooks at a decent price, so I took the plunge and bought one. Whe
-
CRC failed in Java and ABAP Trial Version on Linux - VMware Edition part02
I download SAP NetWeaver 70 - Java and ABAP VMware Trial and I couldn't install it because part02 rar file has reported a checksum error. - SAP NetWeaver 70 - Java and ABAP VMware Trial.part02.rar: CRC failed in SLES10SP1_Test_Drive(2)-s003.vmdk. Th
-
I recently got the 4th generation ipad with retina display and love it. The issue that I have been having with it is that whenever I am on a screen for a while, lets say I am doing a crossword puzzle, whenever I change screens I will still see remnan
-
How can I zoom in to audio waveforms for precision edits?
In FCP 7, you can zoom into audio waveforms for precise edits. In FCP X, there seems to be a fairly coarse resolution to how far you can zoom into audio waveforms. I rely extensively on being able to see where subtle aspirants start and end, but I ca