Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




URGENT: Crystal Reports And BLOB Field.


Hi guys,

its little urgent!

i wish to embedd a blob field which stores a picture in my crystal report in detail-tab. somehow its not been displayed... kindly help me for this problem.

well, all i have done is ... set up the connection for the report, and put the picture field on the report in detail tab.

plz helpppppppppppppppppppppppp

butterfly.

Daring ideas are like chessmen moved forward. They may be beaten, but they may start a winning game.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Crystal Reports - How To Display Text Block Stored In Blob Field.
I'm trying to display text stored in a MySQL database blob field in a crystal report. It won't display the text because crystal reports interprets the field as a picture type. So if the blob field has a graphic stored in it, then it displays just fine. The only way I can get a large block of text to display is to store it in a longtext field. The problem with this is that I want to just have one column in my table that will either store a large block of text or an image. I know MySQL allows me to do this, but crystal reports doesn't seem to know how to handle it when it comes time to display it. Does anyone know a way around this problem without creating 2 separate columns in the table?

Crystal Reports: Highlight Field Based On Value Of Other Field
Is this possible in Crystal Reports? I'd like to colour the values in {ado.NetWt} red where the value in {ado.LBound} > 0....a forecolor property or something?

Need To Export SQL Data To XML File. 1 Field Is A BLOB (binary Field)
I'm a VB/SQL newb looking for some help on exporting records from the DB to an XML file. one of the challenges is that i have one field that is a Binary datatype (BOLB). i need to export that data out and convert it from its Binary state to readable text and save it to an XML file. Can some help me with this?


i will need to be able to specify how the XML file is laid so i can designate the tag names to be compatible with my web software.

Sample code, small projects...anything would be great.

Thanks
GK

The Field Is Not Known With Crystal Reports 10
I have integrated a crystal report (v10) vs visual basic.
My report has one subreport... I have linked this one with the report main. The first time I execute the report is ok. All information attached is displayed sucessfully. However, if I execute it again with the same or different data (filter with combo boxes) crystal reports shows me the next error: 'The field is not known' associated with CRViewer1.ViewReport method
Do you have any idea about this error?
Any suggestion will be appreciated.
Thanks

Crystal Reports Formula Field
Hi
I got a database column which has number values like
480, 495 , 615, 630
which is equivalent to
480 = 8am (which is like 480/60=8)
495 = 8.15am
615 = 10.00am
630 = 10.15 am
i get this values from ctDEdit control, which gives numbers for time.
Now i have to show this number values as time in crystal reports. so i thought of having a formula field.
its easy to get hours and minutes from this number:
its goes like this
(615/60)=10.25
so 10 is hours
(25*60)=1500, here 15 is minutes.
can any one please help me to do this in a formula field, ie to show the time as 10.15am for number 615.
i hope im clear.
thanks
kumaarrv

Crystal Reports Field Suppression
How do you check whether a field is suppressed or not in the formula editor?

Hide Field With Crystal Reports
How do I do if I want to hide a specific field in a report.
I'm going to use my own parameterized queries so I will be able to send boolean values to the report from the application during run-time.

The problem is how to design the report.
Do I have to group that specific field to able to hide it in the report?

Crystal Reports, Hide A Field
Hi, How can I hide a field in crystal reports 8.0 to print it only in the last page of the report, is there a way to do it without using sections?

Thanks

Long Field In Crystal Reports
I have a string selected from a database table, and it can get really long.
Is there any way to automatically wrap the string once it exceeds certain length?

Can anybody help?

Crystal Reports - Null Field
Im using the crystal reports wizard to connect to an access database. Currently the report is returing everything in my access table.

I only want it to return items with a NULL value in my field called "DATE".

Therefore IF my field called "date" has a NULL value then i want to see these records.

Does anyone know how to do this within the crystal report wizard??

Using The Parameter Field In Crystal Reports
I know how to use the parameter function in Crystal but how do I place the parameters entered on the report. I've tried pulling the parameter expression on the report but when the report is run and parameters are entered the field on the report is blank.

Crystal Reports Date/Field
I am currently using a Crystal Report (8.0) which has ADO connection to MS Access 97 database.

I have a Date/Time field (Short format) in my database which contains the date/time 1/23/03 10:43:45 AM. For some reason the Crystal report shows this as being PM not AM.

Is it because I am using a short date? Anyone...

Max Field Size In Crystal Reports
does Crystal Reports impose a maximum field size? I have a Comments field that holds 500 chars but the report only shows 256 characters.

help.

thanks in advance.

Date Field - Crystal Reports
I have a report in Crystal Reports which works fine, except in a PC. In that machine the report prints well, except the date fields that appeared in an empty way. I've worked with Regional Settings, fonts, pass the date to string, but the report doesn't work.

Have you experienced something similar? Have you any suggestion I could follow in order to solve the problem?

Thanks in advance!

Setting Field Value In Crystal Reports
Hi,
I am using a crystal repirt designer (crystal 8) in VB6 - the ICRDesigner. I have placed fields in the Details section of the report designer (a part of the VB application) but I want to assign values to these fields at runtime. Does anyone know the syntax for this. I have used

CrystalReport1.Field1.Value = rsScotiaParameter!LetterDate

but I get an error ...

please help.

Field Formatting In Crystal Reports
I have a field in a table (used in my report) that is "010422". It is a date.. but saved as a string. How do I convert this to look like: "01/04/22" on my report.
Same with time .. I have 140232.. and i want it to look like 14:02:32.

sa

Crystal Reports 4.6 - Field Justification
Hi friends,

How can I justify a text or memo field on a Crystal report ?

Thanks for any help,
Fernando.

OLE Object Field To Crystal Reports
Hello,

I have the Image(OLE Object field ) sitting in access 97 table, and I am using crystal reports to print out the Image.

I am linking the crystal reports to the table by the normal way(normal text field way) and it doesn't seem to work. Beacuse of OLE Object field, I wonder if there is special way to deal with it.


Thank you very much.

Crystal Reports Field Suppression
Hi all - in my report, the details section can show up to 8 fields. The fields are aligned atop each other, like so:

field1
field2
field3
field4
field5
field6
field7
field8

I suppress the fields if they are null. The problem is that the report appears very disorganized and has too much white space. I need to be able to modify the positions of the fields so that they appear consecutively. Example: if fields 2 and 5 are suppressed, I want the report's details section to show like this:

field1
field3
field4
field6
field7
field8

but instead it comes out like this:

field1

field3
field4

field6
field7
field8

and the spaces make it look horrible! How to fix this?

Autoincrement Field In Crystal Reports
i want a auto increment filed in crystal report
for ex in innoice
the format
no product
1 dwe
2 dww

the values for no filed are auto generated and for each invoice it should start from 1

Crystal Reports-field Object-
i hope to modify a file (*.rpt)-crystal reports V8.5-,I can change the textObject and the fieldobject , but if this textobject contain a fieldobject i can't read this field???
ex:
la date [?du] a [?au]->text object contain fields
then program return:la date[] a []
and i can't read {?du} {?au}!!!

Crystal Reports 7 Help !! Urgent. Pls!!
Hi.

I'm using this function to view a report on screen:

result = PEOutputToWindow(jobnum, titu, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 524288 Or 65536 Or 16777216, Empty)

The last parameter (Empty) is a reference to the parent window where the report is viewed, causing the use of a stand alone window.

The problem is when the user press an arrow key, the window lose focus and application stays on top.

How can i avoid this???

Thanks...

Crystal Reports -very Urgent !!!
I AM using the crystal reports ocx control in vb
for displaying data on the reports i am passing a select query to CR Sqlquery property in vb.
in the report i have placed fields from the selected tables.
and also placed the parameter fields in the report.


but the problem is that it is not taking the paramter from the vb front end. at runtime which i am also passing as parameters in the where clause in the select query.

it is giving the error no. '20515' which is "not found in the database DLL"

here is the code i am using

CR.connect=con
CR.datafiles(0)= app.path &" rxdb"
cr.reportfilename=app.path &"
xmainreport"
cr.sqlquery="select statement with the where clause for passing the paramters to the report"
cr.action=true
and also the property print to window=prttowindow

after i give the paramter in the vb text box
and call the report it is giving the error "not found in database dll"

Urgent - Crystal Reports On The Net
I have a crystal report that runs from an ASP page - it works fine on the intranet across the network - but fails when I try to call the asp page from the internet.

Please Help

Thanks

Rob

URGENT!!! Crystal Reports
Does anyone know if there is a .dll file that you need in your VB project when using a crystal report that is using a PICTURE function in it?

Vb And Crystal Reports(urgent)
i m using ms access as the backend. also i have designed some reports using crystal reports 8.5 and queries. now i need to open the reports thru vb but it is giving error "Server has not yet been opened"

Private Sub Form_Load()
Dim crystal As New CRAXDRT.Application
Dim report As New CRAXDRT.report

CRViewer1.DisplayBorder = False
CRViewer1.DisplayTabs = False
CRViewer1.EnableDrillDown = False
CRViewer1.EnableRefreshButton = False
Set crystal = New CRAXDRT.Application


Set report = crystal.OpenReport(App.Path & "
eportfinal2.rpt")
report.Database.Tables.Item(1).SetSessionInfo "admin", ""
report.PaperOrientation = crLandscape


CRViewer1.ReportSource = report
CRViewer1.ViewReport

Do While CRViewer1.IsBusy
DoEvents
Loop

CRViewer1.Zoom 75
End Sub

plz help. it's urgent

Using Crystal Reports 8.5 **Urgent**
can someone help me by giving me a step by step guide on how i can add crystal report to my application. do i need to reference or add a component?

Urgent Crystal Reports
Hi everybody,

I am a fresh user of VB6/sqlserver7/ segate Crystal Reports7.
I have a database(Mainserver) in sql server,I have some
entry forms in VB through which my database is
updated. Now I want to use the crystal report
to design the reports. How i can make reports.
First time i am working with crystal reports So please help me.

Need Urgent Help On Crystal Reports
Hi,
I have 2-3 issues on generating the crystal report at run time using ASP:
1)I am facing difficulty in generating the crystal report connecting to oracle database.connecting to sql and access database are fine

Call Tables.Add(cstr(TableName), , , 1, "PDSODBC.DLL", cstr(dsn), "ODBC - Xtreme Sample Database", , cstr(UserName), cstr(Password))
fn works well for access and sql but not oracle

2)I am not able to generate a report based on a recordset
3)Do u know how to add a chart at run time?

here is the code that I have tried.
Thanks in advance
chan




<%
' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
' Creating a new report using unbound fields
' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

'
' CONCEPT:
'
' This application is designed to demonstrate how to create a new report in an ASP
' application. This ASP uses the concept of "Unbound Fields" where you can add a field
' to a report at runtime.

'===================================================================================
'Create the Crystal Reports Objects
'===================================================================================
'
'You will notice that the Crystal Reports objects are scoped as session variables.
'This is because the page on demand processing is performed by a prewritten
'ASP page called "rptserver.asp". In order to allow rptserver.asp easy access
'to the Crystal Report objects, we scope them as session variables. That way
'any ASP page running in this session, including rptserver.asp, can use them.

reportname = Request.Form("ReportName")
GroupField = "{" & Request.Form("GroupField") & "}"
SortDirection = Request.Form("SortDirection")
FirstField = Request.Form("FirstField")
SecondField = Request.Form("SecondField")
ThirdField = Request.Form("ThirdField")

'This line creates a string variable called reportname that we will use to pass
'the Crystal Report filename (.rpt file) to the OpenReport method.
'To re-use this code for your application you would change the name of the report
'so as to reference your report file.

' CREATE THE APPLICATION OBJECT
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application")
End If

'This "if/end if" structure is used to create the Crystal Reports Application
'object only once per session. Creating the application object - session("oApp")
'loads the Crystal Report Design Component automation server (craxdrt.dll) into memory.
'
'We create it as a session variable in order to use it for the duration of the
'ASP session. This is to elimainate the overhead of loading and unloading the
'craxdrt.dll in and out of memory. Once the application object is created in
'memory for this session, you can run many reports without having to recreate it.

' CREATE THE REPORT OBJECT
'
'The Report object is created by calling the Application object's OpenReport method.

Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend

'This "While/Wend" loop is used to determine the physical path (eg: C:) to the
'Crystal Report file by translating the URL virtual path (eg: http://Domain/Dir)

'OPEN THE REPORT (but destroy any previous one first)

If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if

On error resume next

Set session("oRpt") = session("oApp").NewReport
'This line uses the "PATH" and "reportname" variables to reference the Crystal
'Report file, and open it up for processing.

If Err.Number <> 0 Then
Response.Write "Error Occurred creating Report Object: " & Err.Description
Set Session("oRpt") = nothing
Set Session("oApp") = nothing
Session.Abandon
Response.End
End If

'This On error resume next block checks for any errors on creating the report object
'we are specifically trapping for an error if we try to surpass the maximum concurrent
'users defined by the license agreement. By destroying the application and report objects
'on failure we ensure that this client session will be able to run reports when a license is free

'
'Notice that we do not create the report object only once. This is because
'within an ASP session, you may want to process more than one report. The
'rptserver.asp component will only process a report object named session("oRpt").
'Therefor, if you wish to process more than one report in an ASP session, you
'must open that report by creating a new session("oRpt") object.

session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False

'These lines disable the Error reporting mechanism included the built into the
'Crystal Report Design Component automation server (craxdrt.dll).
'This is done for two reasons:
'
'1. The print engine is executed on the Web Server, so any error messages
' will be displayed there. If an error is reported on the web server, the
' print engine will stop processing and you application will "hang".
'
'2. This ASP page and rptserver.asp have some error handling logic desinged
' to trap any non-fatal errors (such as failed database connectivity) and
' display them to the client browser.
'
'**IMPORTANT** Even though we disable the extended error messaging of the engine
'fatal errors can cause an error dialog to be displayed on the Web Server machine.
'For this reason we reccomend that you set the "Allow Service to Interact with Desktop"
'option on the "World Wide Web Publishing" service (IIS service). That way if your ASP
'application freezes you will be able to view the error dialog (if one is displayed).

'====================================================================================
' Add Databases to the Report
'====================================================================================

Set Database = session("oRpt").Database
'Instantiate the Database Collection


Dim UserName,Password,dsn,TableName

UserName = Request.Form("UserName")
Password = Request.Form("Password")
dsn = Request.Form("DSN")
TableName = Request.Form("TableName")

set conn=Server.CreateObject("ADODB.Connection")
connStr = "DSN="& dsn &"; UID="& UserName &";PassWord="& Password &""

conn.ConnectionString = connStr
conn.Open "","","",adConnectUnspecified
rs.CursorLocation = adUseClient
rs.CursorType = adOpenStatic

set rs = Server.CreateObject("ADODB.recordset")



rs.Open "Select * from " & TableName, conn

Database.SetDataSource rs




Set Tables = Database.Tables

'call Tables.Add "", , rs, , "p2smon.dll"
'Instantiate the Tables Collection



Call Tables.Add(cstr(TableName), , , 1, "PDSODBC.DLL", cstr(dsn), "ODBC - Xtreme Sample Database", , cstr(UserName), cstr(Password))
'This line adds the Customer Table from the Xtreme.mdb database
'(referenced through the "Xtreme Sample Database" ODBC Datasource Name

Set FirstTable = Tables.Item(1)

'FirstTable.SetPrivateData 3, rs
'Instantiate the First Table in the Tables Collection (only using one table in the report)
Set Fields = FirstTable.Fields
'Instantiate the Fields Collection for the table

Set GroupFieldIs = Fields.Item(cint(1))
'This loop iterates through each field in the table until the grouping field is found.
'We compare the field's name to the name of the field entered in the HTML page.
'Once we match the selected field with a field from the database we instantiate that field
'as an object that we pass (as the second parameter) to the AddGroup method



intsortdirection = 1
'This case statement compares the sort direction entered by the user

session("oRpt").AddGroup 0, GroupFieldIs, 14, intsortdirection
'Add the group to the report using the GroupFieldIs object as the grouped field.

'Add the Group Field to the Group Header section
Counter=1
iNumber=2000

For i = 1 to Fields.Count

test=Fields.Item(cint(i)).Name
session("oRpt").Sections.Item("D").AddUnboundFieldObject 10, cint(iNumber), 0
iNumber=iNumber+1000
Set FieldObject = session("oRpt").Sections.Item("D").ReportObjects.Item(cint(Counter))
FieldObject.SetUnboundFieldSource cstr(test)
Counter=Counter+1
iNumber=iNumber+1000
next

With session("oRpt").Sections(1)
'.AddSpecialVarFieldObject crSVTReportTitle, 2300, 100
End With


With session("oRpt").Sections(2)
Set txt1Obj = .AddTextObject("cellid", 2000, 1800)
txt1Obj.Font.Bold = True
txt1Obj.Font.Size = 8
Set txt2Obj = .AddTextObject("celltype", 4000, 1800)
txt2Obj.Font.Bold = True
txt2Obj.Font.Size = 9
Set txt3Obj = .AddTextObject("driverid", 6000, 1800)
txt3Obj.Font.Bold = True
txt3Obj.Font.Size = 9

Set txt3Obj = .AddTextObject("platenum", 8000, 1800)
txt3Obj.Font.Bold = True
txt3Obj.Font.Size = 9
End With


With session("oRpt").Sections(3)

'Set ln1Obj = .AddLineObject(2500, 0, 2500, 10)
'ln1Obj.LineThickness = 2
'ln1Obj.ExtendToBottomOfSection = True
'Set ln2obj = .AddLineObject(5000, 0, 5000, 10)
'ln2obj.LineThickness = 2
'ln2obj.ExtendToBottomOfSection = True
'Set ln3Obj = .AddLineObject(0, 10, 6500, 10)
'ln3Obj.LineThickness = 2
'Set ln5Obj = .AddLineObject(0, 0, 0, 10)
'ln5Obj.LineThickness = 2
'ln5Obj.ExtendToBottomOfSection = True
'Set ln6Obj = .AddLineObject(6500, 0, 6500, 10)
'ln6Obj.LineThickness = 2
'ln6Obj.ExtendToBottomOfSection = True
End With


With session("oRpt").Sections.Item(4)
' Set ln4Obj = .AddLineObject(0, 0, 8500, 0)
' ln4Obj.LineThickness = 8
End With


With pRpt.Sections.Item(5)
'.AddSpecialVarFieldObject crSVTDataDate, 30, 0
'.AddSpecialVarFieldObject crSVTDataTime, 10, 200
End With




'Each Case statement compares the values for fields entered by the user. Once we know which
'field is to be added, in which order, we then call the AddUnboundField method to add an
'an unbound field object for the field. An unbound field is basically a "container" field
'that we can give the value of a database field. Once the unbound field has been added to
'the report we then create a field object from the unbound field and finnaly assign
'the unbpund field a database field value
'selected. Once the field object has been created



'====================================================================================
' Retrieve the Records and Create the "Page on Demand" Engine Object
'====================================================================================




session("oRpt").Save Path & "
ewreports" & reportname

'====================================================================================
' Retrieve the Records and Create the "Page on Demand" Engine Object
'====================================================================================

On Error Resume Next
session("oRpt").ReadRecords

If Err.Number <> 0 Then
Response.Write "Error Occurred Reading Records: " & Err.Description
Set Session("oRpt") = nothing
Set Session("oApp") = nothing
Session.Abandon
Response.End
Else
If IsObject(session("oPageEngine")) Then
set session("oPageEngine") = nothing
End If
set session("oPageEngine") = session("oRpt").PageEngine
End If

' INSTANTIATE THE CRYSTAL REPORTS SMART VIEWER
'
'When using the Crystal Reports automation server in an ASP environment, we use
'the same page on demand "Smart Viewers" used with the Crystal Web Report Server.
'The are four Crystal Reports Smart Viewers:
'
'1. ActiveX Smart Viewer
'2. Java Smart Viewer
'3. HTML Frame Smart Viewer
'4. HTML Page Smart Viewer
'
'The Smart Viewer that you use will based on the browser's display capablities.
'For Example, you would not want to instantiate the Java viewer if the browser
'did not support Java applets. For purposes on this demo, we have chosen to
'define a viewer. You can through code determine the support capabilities of
'the requesting browser. However that functionality is inherent in the Crystal
'Reports automation server and is beyond the scope of this demonstration app.
'
'We have chosen to leverage the server side include functionality of ASP
'for simplicity sake. So you can use the SmartViewer*.asp files to instantiate
'the smart viewer that you wish to send to the browser. Simply replace the line
'below with the Smart Viewer asp file you wish to use.
'
'The choices are SmartViewerActiveX.asp, SmartViewerJave.asp,
'SmartViewerHTMLFrame.asp, and SmartViewerHTMLPAge.asp.
'Note that to use this include you must have the appropriate .asp file in the
'same virtual directory as the main ASP page.
'
'*NOTE* For SmartViewerHTMLFrame and SmartViewerHTMLPage, you must also have
'the files framepage.asp and toolbar.asp in your virtual directory.

viewer = "ActiveX"

'This line collects the value passed for the viewer to be used, and stores
'it in the "viewer" variable.

If cstr(viewer) = "ActiveX" then
%>

<%
ElseIf cstr(viewer) = "HTML Frame" then
Response.Redirect("htmstart.asp")
Else
Response.Redirect("rptserver.asp")
End If
'The above If/Then/Else structure is designed to test the value of the "viewer" varaible
'and based on that value, send down the appropriate Crystal Smart Viewer.
%>

' INSTANTIATE THE CRYSTAL REPORTS SMART VIEWER
'
'When using the Crystal Reports automation server in an ASP environment, we use
'the same page on demand "Smart Viewers" used with the Crystal Web Report Server.
'The are four Crystal Reports Smart Viewers:
'
'1. ActiveX Smart Viewer
'2. Java Smart Viewer
'3. HTML Frame Smart Viewer
'4. HTML Page Smart Viewer
'
'The Smart Viewer that you use will based on the browser's display capablities.
'For Example, you would not want to instantiate the Java viewer if the browser
'did not support Java applets. For purposes on this demo, we have chosen to
'define a viewer. You can through code determine the support capabilities of
'the requesting browser. However that functionality is inherent in the Crystal
'Reports automation server and is beyond the scope of this demonstration app.
'
'We have chosen to leverage the server side include functionality of ASP
'for simplicity sake. So you can use the SmartViewer*.asp files to instantiate
'the smart viewer that you wish to send to the browser. Simply replace the line
'below with the Smart Viewer asp file you wish to use.
'
'The choices are SmartViewerActiveX.asp, SmartViewerJave.asp,
'SmartViewerHTMLFrame.asp, and SmartViewerHTMLPAge.asp.
'Note that to use this include you must have the appropriate .asp file in the
'same virtual directory as the main ASP page.
'
'*NOTE* For SmartViewerHTMLFrame and SmartViewerHTMLPage, you must also have
'the files framepage.asp and toolbar.asp in your virtual directory.



'This line collects the value passed for the viewer to be used, and stores
'it in the "viewer" variable.


'The above If/Then/Else structure is designed to test the value of the "viewer" varaible
'and based on that value, send down the appropriate Crystal Smart Viewer.
%>

Crystal Reports-Multiple Values For One Field
I have a VB6 program that contains a form that allows the user to select 3 different criteria. These criteria in turn are used by the program to pass an sql statement to the crystal report 7 object within the vb program.
The problem I am having is that I need to pull data from two different tables within the same Access database. The first table is the main table with information on machines (i.e. IPAddress, name, location, repairtime etc). The second table is linked via a generic ID number field, and contains the names of the maintenance personnel who repaired the machine. In some cases, there are several people working on one machine. I am currently using the sql statements to pull information from an Access query that combines the two tables. The problem is that if there is more than one maintenance person who repaired the machine, the query will list that record several times.
Any suggestions on how to get around this? I want all of the names to show on the report for any given ID number.

Not Able To Sum The Field In Crystal Reports 9 Formula Editor
Friends,

The below formula is not working. Please point me where iam making mistake.

=========================================
whileprintingrecords;
global numbervar tottrd;
numbervar cnttottrd;
if
(
{Admin.OTC}="001"
or
{Admin.COEN} in
["Chargeable Labour + Chargable Spares",
"Chargeable Labour + Free Spares",
"Chargeable Spares + Free Labour"]
)
then
cnttottrd := {PAYMENTS.PAIDAMT}
else
cnttottrd := 0;
tottrd := tottrd + cnttottrd

=========================================

if i change
cnttottrd := {PAYMENTS.PAIDAMT}
to
cnttottrd := 1
then its working.......

Please treat this as urgent.

Thanks & Regards
Sathyguy

Crystal Reports - Sorting A Formula Field
Hi,

I've got a formula field on my report: -


Code:
//@SumQty
Sum({SALES_VIEW.SUM_QTY}, {SALES_VIEW.AR_DESCRIPTION})
I want to sort the report using this field, but can't seem to find a way.

Is it possible to do this?

Regards

Word Wrap On Field In Vb Crystal Reports 8.5
Hi,
I'm very new to vb crystal reports 8.5 and have to generate a mailing label report where in I need to word wrap on the fields as it is creating spaces if either the database field is null and does not word wrap.

Also give some links to learn and explore vb crstal reports 8.5

Thanks a million....in advance

Using A Memo Field In An Expression In Crystal Reports
I need to use a memo field in an expression in a crystal report, but can't. I know there is some problem with memo fields, but how can I get around this?

Using A Parameter Field In Crystal Reports - Very Easy One
I am new to Crystal Reports. I need to filter a query
with a where clause. I guess I need to insert a
parameter field here. I've tried but failed a couple
of times to get that thing to use. Can someone here
walk me through the process of successfully creating
and using a parameter field in Crystal Reports. To
make it easier, let me imagine a situation where I
have a table called [My Friends] and I need to
retrieve all the friends of mine who stay in Delhi. So
I need a query something like:

select * from [My Friends] where [City] = 'Delhi'

Now I create a simple report using the Report Expert
where I select one table [My Friends] and all the
fields and I have the report in front of me, showing
all my friends and their addresses, wherever they
live. Now, I need to place this filter. Please take it
from here.

Sathyaish Chakravarthy

Find Field Parameters In Crystal Reports Using VB
I have a query that returns 800 reports and I want to find the fields associated with each of those reports. How should I go about coding this into vb?

Set return = store.query("SELECT SI_NAME, SI_ID, SI_FILEs, SI_PROGID FROM CI_InfoObjects WHERE (SI_PROGID = 'crystalenterprise.report')")

if return.count > 0 then
For each item in return
        objexcel.cells(i, 1).value = item.id
        objexcel.cells(i, 2).value = item.title

I have returned the ID and Title, so now how do i get every field? Please Help!

Extension Of Details Field In Crystal Reports
hai hai hai every one

hope u all r fine

im back here to eat ur heads

ok im asking a solution from u all as

how to extend the details section of crystal reports? the problem does not ends here as i want to place a footer message in the footer section of reports. so now my problem is that footer runs for all the pages. but i wanted it ti be displayed for only the last page if the report is more then a single page.

hope u can help me

thanks

nithi

with regards Nithi

There are no such things as applied sciences, only applications of science.
  - Louis Pasteur

Not Able To Sum The Field In Crystal Reports 9 Formula Editor
Friends,

The below formula is not working. Please point me where iam making mistake.

=========================================
whileprintingrecords;
global numbervar tottrd;
numbervar cnttottrd;
if
(
{Admin.OTC}="001"
or
{Admin.COEN} in
["Chargeable Labour + Chargable Spares",
"Chargeable Labour + Free Spares",
"Chargeable Spares + Free Labour"]
)
then
cnttottrd := {PAYMENTS.PAIDAMT}
else
cnttottrd := 0;
tottrd := tottrd + cnttottrd

=========================================

if i change
cnttottrd := {PAYMENTS.PAIDAMT}
to
cnttottrd := 1
then its working.......

Please treat this as urgent.

Thanks & Regards
Sathyguy

How To Creating Hyperlink In Crystal Reports On A Field
Hi everybody,

I have a problem regarding crystal report i have to tables tblMailInfo and tblAttachments.
I have designed a main report selecting fields from tblMailInfo, the problem is that i want to create a hyperlink
on the MailID field so that when i click this field a new report opens displaying the attachements for that MailID from tblAttachments
Please help me in this problem with code if any one have.

Crystal Reports Formula Field Charting
I am not a Crystal expert, I normally would be using VB but this project requires a report written in Crystal and I have no access to VB. Any suggestions would be great.

I have a report with a field: {StartTime} that is being pulled from a subreport: ASubrpt.rpt.

I the main report I have a formula field: {RoundedTime} that rounds the time from {StartTime} in ASubrpt to the nearest minute by fives. (example 7:22 would be 7:20).

Now, I need to graph and cross tab the count of records on the change of {RoundedTime}.

Please advise. I have even tried using the Charting on Print-Time Formulas pdf from Business Objects.


If there was a way to format the StartTime field in ASubrpt to be rounded and then create the chart in the subreport then I could insert it into the main report, but I do now know if you can format the time like that w/o a formula field. And then would it even be chartable?


Thanks in advance!

Crystal Reports 9: Formula Field Alignment
I have the following Formula Field in the detail section of a report…
If IsNull({ado.AMOUNT}) = False Then
   Formula = {ado.amount}
Else
   Formula = 0.00
End if

The Horizontal Alignment for the field is set to “Right”. For some reason when ado.AMOUNT is Null the zero value of the formula is displayed to the right but it is off by one position to the left.
See Example
AMOUNT
      $0.00
      $10.00

Anyone know why this is happen?

Formatting Date Field In Crystal Reports
I am using SQL Server as my database and I have a date/time field in the database. I am using a command object to pull information from the SQL Server database and displaying it in report form using Crystal Reports 8. My problem is that I only want the date displayed in the date field in Crystal Reports. I do not know how to format the incoming date/time to just display the date. Any help will be greatly appreciated.

Thanks,
jen_tech

Replace Database Field In Crystal Reports
I've linked the crystal report to a database, now i need some help in manipulating the database field. For example,the field consists of "P" (stands for PASS) or "F" (stands for fail) but i want to display PASS / FAIL instead of P/F ...can someone help me on this? do i need to use a formula or something? i'm very very new to crystal reports... Thankx

emails will be welcomed. pls email to this address zijing@singnet.com.sg

Crystal (Sub)Reports (Help Urgent Required!!!!!)
Hello,

Does anyone has an example of a crystal report containing two subreports?

I need to know how to create the report and how i can link a sequel or a shape to it via VB-code.

Data looks like

Main report : Number <1>
Name "Help"

Sub report 1 : Number <1>
NumberDetail1 1
NumberDetail1 2

Sub report 1 : Number <1>
NumberDetail2 1
NumberDetail2 2
NumberDetail2 3


I hope somebody can help me


Thanks in advance,

Crystal Reports Problem- Urgent
im trying to call a report created in crystal reports 7 connecting to an oracle database.
the report works in crystal reports but when calling from VB it says cannot open SQL Server error 20599.
Help

Very Urgent Crystal Reports Problem.
Hi friends,
I would be very thankful if you are able to help me out with the following problem.
I have a report in my application. It is supposed to connect to the database whose DSN has been created. I am using ADO for this and the database is in
MS Access. My coding is done using VB 5.0.
But the problem is that it is not showing the database which is connected using the DSN name.
But this thing works properly if I set location from crystal reports. But it is not possible for the end user to set the location everytime.
So, I want to know whether it is possible to connect to the actual database using VB. If yes, then how do I do it.
I would be very thankful i someone could help me out on this problem as it is a bit urgent.
Thanx in advance.
Regards,
Sohini

Urgent Help Needed In Crystal Reports
I am using crystal reports for my project.
I would like to customize my reports the way the way The Crystal Reports Pro works so that I can add the required fields in the rpt file and let the Activex control pick up this file and show it.

But Since the fields I show are quite dynamic I would like to design my report at run time.

Is there any way to do this.

Mandar

Hide/Suppress A Field/column In Crystal Reports
Hi,

I'm working on an application that displays a report.


Code:
Dim Report As New CrystalReport

Option Explicit

Private Sub Form_Load()

Dim CRXReport As CRAXDRT.Report
Dim crxApp As CRAXDRT.Application

Screen.MousePointer = vbHourglass

Set crxApp = New CRAXDRT.Application
Set CRXReport = crxApp.OpenReport("C:Program FilesBusiness ObjectsCrystal Reports 11SamplesenReportsTCPOSArticleSales.rpt", 1)

CRViewer1.ReportSource = CRXReport
CRViewer1.ViewReport

Screen.MousePointer = vbDefault

End Sub

Private Sub Form_Resize()

CRViewer1.Top = 0
CRViewer1.Left = 0
CRViewer1.Height = ScaleHeight
CRViewer1.Width = ScaleWidth

End Sub

Private Sub Form_Unload(Cancel As Integer)

End

End Sub
The report I'm showing has 7 columns, the 7th I'd like to show/hide depending on the users choice.

I've looked through the help files, and on this site, but can't find an example or answer.

Is there a way through code to do this?

Regards

Crystal Reports: Slant/make Diagonal Field
Can anyone tell me if there is a way to display a field in Crystal Reports on a slant?

Copyright © 2005-08 www.BigResource.com, All rights reserved