Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How I can print from text boxses without any Database just by user
by Crystal Report

i want to enter my details or data by my hand in the final form
not through database

just i want to make a good form for the end user then he can enter his values then print it
thanks for advice
Posted

If you don't want to use database in Crystal reports then check this one
C# Crystal Reports without database[^]

If the above tutorial is not what do you want then crystal reports is not an option. Go with HTML. Generate HTML string dynamically based on user input & display it.
The HTML Report Engine[^]
Dynamic HTML reports in Windows Forms[^]
 
Share this answer
 
You can try this code at Print Button
First Declare the namespace of the form, then declare the textboxes of crystal report as T.
then at T.Text = you can write the string which you want to display on the report textbox

----------------------------------------------------------------------------------------
Trial.Forms.Printing.P01 Rpt = new Trial.Forms.Printing.P01();

CrystalDecisions.CrystalReports.Engine.TextObject T;
T = (CrystalDecisions.CrystalReports.Engine.TextObject)Rpt.Section3.ReportObjects["txtRemarks"];
T.Text = Remarks;
T = (CrystalDecisions.CrystalReports.Engine.TextObject)Rpt.Section3.ReportObjects["txtPh"];
T.Text = Phone;
---------------------------------------------------------------------------

write the code to show preview of report
 
Share this answer
 
Comments
radals 26-Nov-13 16:57pm    
first thanks for help Mr nehajain
can you Give me More Clear Steps
i will use Report Viewer & Crystal report
& Dataset or not
thanks Mr nehajain

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900