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?

Jan MontanoRank #1,295 · 1.3K reputationPosted May 29, 2007, 10:42 PM EDT
sona s19 reputationPosted May 30, 2007, 8:27 PM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted May 30, 2007, 10:39 PM EDT
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 s19 reputationPosted May 31, 2007, 8:17 PM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted May 31, 2007, 10:07 PM EDT
if {tblRegistration.rsex} = 0 then
else
sona s19 reputationPosted Jun 1, 2007, 8:19 PM EDT
Munish16 reputationPosted Jun 4, 2007, 12:38 AM EDT
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 s19 reputationPosted Jun 4, 2007, 8:28 PM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted Jun 6, 2007, 2:03 AM EDT
sona s19 reputationPosted Jun 7, 2007, 2:18 AM EDT
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
sona s19 reputationPosted Jun 8, 2007, 3:29 AM EDT
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 s19 reputationPosted Jun 12, 2007, 9:45 PM EDT
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