Hi! I used crystal report, but I have problem. When I print result in paper it’s print like this.
But I want it’s print only text like this.
How I can trim line left, top, right and bottom?
My crystal report haven't printer setup in design but not solved problem. How i can use change them programmatically for below code?
protected void Page_Load(object sender, EventArgs e) { string searchTerm = "2265"; //Request.QueryString["Kodbm"]; ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(Server.MapPath(@"/Reports/PardokhtReport.rpt")); PersonInformation dsPersonInformations = GetPersonInformations(searchTerm); crystalReport.SetDataSource(dsPersonInformations); prPersonInformation.ReportSource = crystalReport; } private PersonInformation GetPersonInformations(string searchTerm) { SqlConnection con = new SqlConnection(UserData); SqlCommand cmd = con.CreateCommand(); cmd.CommandText = "exec PPARDOKHT'" + searchTerm + "'"; SqlDataAdapter sda = new SqlDataAdapter(); sda.SelectCommand = cmd; PersonInformation dsPersonInformation = new PersonInformation(); sda.Fill(dsPersonInformation, "DtTable"); return dsPersonInformation; }
I'm not familiar with the CR Viewer, but when you create new subreports in the CR Developer, borders are added by default. Turn it off by right-click->format subreport->border and set all the Line Styles to none.
I used crystal report contains border then it's print document with border. How I can use it's without border? It' very impotant for me. Who is you can help me?
As you are saying you used crystal report contains border then remove the border.
When I print result in paper it's print all documents like this:
But I want print only this part in paper:
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.