Crystal report
Sir,
Could i use crystal reports for printing retail bills?
How can we adjust the height and width of the report?
can this report is suitable for dot matrix printer?
how can suppress some fields before printing ?
is there any method for printing the retail bills other than crystal report?
sona sPosted Jun 13, 2007, 1:45 AM
its working.
i have construct a new function in my form through which i could pass a text to crystal report.
inside the report i have write
if {@Data}="suppress " then
yes
else
no
How can i write the event procedure for printing the report
Can i hide these values inside the event procedure
sona sPosted Jun 8, 2007, 7:29 AM
i have got a solution for this but it has some problems
the solution is that
i must set a parameter field named data its default values are "display" and "suppress"
i must write the following code for each of the textfield as
if {@data} ="display" then
yes
else
no
it is working.While displaying the crystal report a prompt is displayed and when i give the value "display" all the fields are displayed for "suppress" all are suppressed
But what i want is to set the parameter through program without displaying the prompt
is it possible?
sona sPosted Jun 7, 2007, 6:18 AM
Hello Sir,
i want to suppress 5 Text box fields
With names
txtName,txtAge,txtSex,txtDOJ,txtAddress
in which
For eg:-
txtName.Text="Customer Name : "
the textfield and formula fields are arranged together
then i get
Customer Name : William inside the crystal report
the name "william" is from the database
and it will be added to a field named {tblRegistration.rname}
what i want is when the user click the print button the textfield txtName will suppress
and {tblRegistration.rname} must print
Jan MontanoPosted Jun 6, 2007, 6:03 AM
sona sPosted Jun 5, 2007, 12:28 AM
MunishPosted Jun 4, 2007, 4:38 AM
Just create new formula field through Field Explorer and create a new field and type somthing like below
if {FieldName}=1 then
"Male"
else
"Female"
I hope it can help u.
sona sPosted Jun 2, 2007, 12:19 AM
Jan MontanoPosted Jun 1, 2007, 2:07 AM
if {tblRegistration.rsex} = 0 then
else
sona sPosted Jun 1, 2007, 12:17 AM
Jan MontanoPosted May 31, 2007, 2:39 AM
Are you using the crystal reports designer in vs.net? If you are, you can right click the object you want to supress then choose FORMAT OBJECT. You should check the suppress checkbox if you want to suppress that specific field.
If the above doesn't help and if you have your code, please post it. thanks.
sona sPosted May 31, 2007, 12:27 AM
Jan MontanoPosted May 30, 2007, 2:42 AM