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; }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.