Showing posts with label crystal. Show all posts
Showing posts with label crystal. Show all posts

Wednesday, March 21, 2012

How to adjust several SQL scripts in crystal report ?

Hi,

I wanted to adjust several sql scripts in the main crystal report without using subreports inorder to get data from an Oracle database version 8.17.

I am using add command in order to add my scripts.
I am using Oracle OLE provider in order to connect the oracle database.

I am using crystal report version 9.

Suppose there are four SQL scripts, I wanted that data from several columns of each SQL scripts should be display on separate detail section or separate page in a main crystal report without using subreports.

How should we do that?

Below you find some of the SQL scripts:

Thanks

Regards

Juma

Script1:

select vuser "DB User",vdatabase "Database",vclient "Client Name"
from temp where vuser
in (select username from v$session where username is not null and
username not in('SYS','SYSTEM', 'DBSNMP'))

Script2

select a.username "DB User",a.status "Status", a.sid||','||a.serial# "Sid & Serial#" ,
a.OSUSER "OS User",a.machine "Machine",a.TERMINAL "Terminal",a.program "Program"
from v$session a,v$sess_io cHi juma,
I dont think this is possible without subreports. Why do you want to do this without subreports?

Madhivanan

How To Add Time Field In Crystal Reports 4.6

I want to add Date and Time details in my Report. (Crystal Reports 4.6) Date is ok, But I can't add time field. Please help me to do that.
Regards,
Supunu got two special fields print date and print time use them

Monday, March 19, 2012

How to add summary functions in group footers for report with no database field

Hi,

I use a crystal report that does not have any database fields, only formula fields. I already know how to add a group with the addgroup method, but need to know how are summary fields added?

I need to add a sub total for a money field in each group that has to show at bottom of each group but am unsure as to how this is done. Any help would be very much appreciated.

Again, I don't use any database field and so CR does not allow me to physically add a group section and paste any formulas. It seems this needs to be done by code.

I'm desperate!

Regards,

MikeHi,
U need database fiels in crystal report, it is very important, without having any data what r u gonna show in your report.

Field on which u want to summarize,

In your report detail section, right click the desired field and "Insert" > "Summary". Select "count" and place it in group footer

U will have various options as maximum , minimum, count , Mode etc, select according to your report requirements.

How to add row number in cryatl report 10?

Hi all,
I am working in crystal report 10. In the report i need to add row numbers in each page starting from 1.
Eg: Page1 row1
row 2
row 3 ..
Page 2 row 1
row 2
row 3 etc..

Colud anyone pls suggest how this can be done? very urgent...

Regards,
AmbiliPut a formula in the page header to reset a row number variable, and one in the detail to increment / display it.|||Always remember

You initialize a vairiable in the Header Section, Increment it in the Details section, Show/Print it in the Footer section

regards
Amarjit

Monday, March 12, 2012

How to add new fields in crystal report 11?

Hi, how do I add a new field in the crystal report? Im using crystal report 11. Please advice... :)You're 'aving a laugh, right?|||What do you mean? How can I add new fields to my report from my database? :)|||The same way you added existing ones, drag 'em there...
Or maybe there's some subtly in your question that I just don't understand?|||Do you want add new fields that are created after the report was designed? Open the report and do verify database|||Do you want add new fields that are created after the report was designed? Open the report and do verify database

Ya, the fields are new and are not in the report. How do I add the new field to the report? How do I verify database? Im very new to crystal rpt. Please guide me along...:)|||Open the report. In the menu Database->Verify Database. If if says database is uptodate, then you can add the new columns to that report

How to add new columns to the Table

Hi all

I am new to crystal and i am working on Crystal 9

How do i add columns to the table referenced in the connection of the report..

Let me make it clear.Assume that i have a table with 10 columns and i had created the report by connecting to the DB and run the report...

Now i add another 3 columns to that table and i need to have these 3 columns also in the report..Since we dont have option of editing SQL Query in Crystal 9

Can any one tell me whether is there any option such that when ever there are changes in the table they get reflected automatically to the report i mean when i open the report and click on the table can i see 13 columns instead of 10 and if not then how do i acheive that with out deleting the previous connection bcos there are lots of fileds refred in the report using the first 10 columns..

Thanks in Advance

MoaOpen the Report and Do verify Database. Now it will be updated with latest structure

Friday, March 9, 2012

How to Add Crystal Reports 9 into VB 6 Project

Hi! All!

I can't add Crystal Report 9 into VB 6 Project.

I already Create Crystal Report 9 and I try to add Crystal Reports controls into VB 6 application Project -- > components & reference also.

What are all the controls(dll or ocx) to be added in VB application components & reference for import Crystal Reports 9 into VB 6 Application.

Can any one tell me how to add Crystal Reports 9 into VB 6.

Thanks

- RajaExtracted from --> http://www.mahipalreddy.com/cr/crcodes1.htm
'Code by Mahipal Padigela
'Add a Command button to your Form(Form1)
'Add a Form(Form2) to the project and add a 'Crystal Report Viewer Control 9' from Project-->Components to it.
'Reference 'Crystal Reports 9 ActiveX Designer Run Time Library' from Project-->References
'Replace "C:\myCRReport.rpt" with your CR Report file path
'Replace the value of strSelectionfrm variable with your selection formula
'Paste the following in to the code window of your form

Private Sub Command1_Click()
Dim crApp As CRAXDRT.Application
Dim Report As CRAXDRT.Report
Dim strSelectionfrm As String
Set crApp = New CRAXDRT.Application
Set Report = crApp.OpenReport("C:\myCRReport.rpt")

'You don't need the next line of code if you are using a MS Access databse, but if you are using
'any other databse then Crystal reports expects you to pass Logon credentials before opening the report. So replace the
'DSN name, Databse name, user name, password with yours. Though the next line of code is passing Logon info to
'only the first table in the Tables array of the report, in theory, it should work fine as crystal passes the same info to any other
'tables in the report.For more info on passing Logon credentials to each and every table in the main report as well as all subreports,
'please refer to my article programmatically exporting Crystal Reports to PDF and other formats

Report.Database.Tables(1).SetLogOnInfo "DSN name", "Databse name", "user name", "password"

'Replace the value of strSelectionfrm variable with your selection formula
strSelectionfrm = "{Expected_Sales.Dept}='Analyst Group' and {Expected_Sales.Qtr}='Qtr1'"
Report.RecordSelectionFormula = strSelectionfrm
Report.DiscardSavedData
Form2.CRViewer91.ReportSource = Report
Form2.CRViewer91.ViewReport
Form2.Show
End Sub|||Tq for reply.

I already add Crystal Reports controls in Project components & also Reference.

But still I can't add Crystal Report into my VB 6 Project.

I attach with screen shots for adding components & references for Crystal Reports 9 controls.

http://www.dev-archive.com/forum/attachment.php?attachmentid=&stc=1

After add these controls we can directly add crystal report from Project Menu (like Add Crystal Report).

Is it true or not?

If it is true there is no more option to add Crystal Report in Project Menu.

I can't use Crystal Reports coding like

Dim crApp As CRAXDRT.Application
Dim Report As CRAXDRT.Report
Dim strSelectionfrm As String
Set crApp = New CRAXDRT.Application
Set Report = crApp.OpenReport("C:\myCRReport.rpt")

in my Project.

Can you please tell me what's wrong in my project.

Is Crystal Reports 9 Problems or VB 6 Problems?

Thanks.

- Raja|||either you i havent understood exactly what you are trying to ask,
but if no,
then you can just add .rpt file of the Crystal Reports,like this..
right click Project in solution Explorer, Add->File-> and just choose your .rpt file. VB6 will attatch the .rpt file as .dsr file.and you can directly use its relative path,by creating instance of that .dsr file.thats it.|||Tq for reply.

I already add .rpt file into my VB project. But it is saved as in module(Not in .dsr file).

Is any other crystal controls needed to add in VB Project?

I can try to Reinstall Crystl Reports 9 & add controls into VB Project again.

Still I can't find out any other controls related to Crystal Report Designer or Viewer in my VB tool box controls.

What I need to change for add Crystal Reports 9 into my VB project?

Can anyone send more details about these problem.

Thanks.

- Raja

Wednesday, March 7, 2012

How to add an SQL to report?

I am using Crystal Reports 9.0.

I would like to link to tables together with fields "unitID" and "PropUnit"

I links the fields but when I add more then one field to the report the data disappears in the preview.

I looked at Crystals sample report. It uses a SQL statement.

How do I add an SQL statement if that's what I need to get this to work.

Thanks,

SteveIs it possible that there are no records satisfying this criteria/join ?

I don't think displaying 3 fields would suppress display of records from preview!

Thanks|||Thanks. This is my 1st try at using CR and that didn't even cross my mine.

Steve

Friday, February 24, 2012

How to add 12 months to the CurrentDate

Ciao, i'm using Crystal Report 6 and I have a formula field which must show the currentdate + 12 months, i.e.: today is 16/11/2004, i need 16/10/2004.
Could you help me?
I'm trying the data functions but i'm not able to solve my problem :-\Solution:
CurrentDate + 365

Ops... :-p
Ciao :-)|||above solution works except for Leap years.....
alternative is :
formula = dateAdd("m", 12, CurrentDate)

you can do add and subtract arithmetic on dates using DateAdd.
1st paremeter = either "d", "m", or "y",
2nd parameter is amount you want to inbcrement or decrement by,
last parameter is date you want to use as basis of calculations

Dave

Sunday, February 19, 2012

How to access the area beyond the margin?

Hi! I'm new to Crystal Reports but have some projects due very soon!

When I export data from People Soft Query to Crystal, some fields get pushed out to the unworkable area beyond the right margin (beyond the ruler of the Design tab). I cannot select/move/remove these items.

How do I access this "gray" area?

Data is still being retrieved for these fields, so I need to find a way to move or remove them. (Trying to avoid rebuilding all of my new reports!)

Thanks!Did you try setting the landscape print format so that the width will get expanded?|||Did you try setting the landscape print format so that the width will get expanded?

I faced the same problem.. yeah, there are some data in the gray area which i couldnt touch at all.. n yet i try to set it up to landscape in printer properties, but still there are some data missing...

helpppppppppppppp......|||See if you find answer here
http://support.businessobjects.com/