Print Page | Close Window

Barcode label page orientation

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=15785
Printed Date: 04 May 2024 at 4:51am


Topic: Barcode label page orientation
Posted By: sinking
Subject: Barcode label page orientation
Date Posted: 03 Mar 2012 at 3:03am
Hi,

I'm currently using Crystal Report 2008 SP4.

I'm currently designing barcode labels to be printed via crystal report.

When I set the page orientation width to be larger than the height, crystal automatically set the page orientation to landscape when what i require is the page to be set as portrait.

This causes me to print the label on a 90 degree angle during printout.

How can i set the page orientation to be portrait?



Replies:
Posted By: tonytr
Date Posted: 03 Dec 2012 at 5:28pm
Have a try on the below barcode library for printing barcode in Crystal Reports. It is easy to adjust the barcode orientation using this barcode library.
http://www.keepdynamic.com/barcode-crystal-reports/upc-e.shtml - http://www.keepdynamic.com/barcode-crystal-reports/upc-e.shtml


Posted By: jamesjim882
Date Posted: 24 Jan 2013 at 10:03pm
http://www.businessrefinery.com/products/barcode_crystal_report/crystal_report_barcode_generator.html - Barcode Generate SDK for Crystal Report is the most professional .NET DLL Class Library, which provides an easy way for developers to add advanced barcoding and printing capabilities onto Crystal Reports for .NET projects. Once the barcode is installed in a report, no other components or fonts need to be installed to create barcodes.
You can adjust barcode rotation using C#:
rotected void Page_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.
mdb"
);
aConnection.Open();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter
("select * from Customer", aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);
//add a new column named "Barcode" to the DataSet, the new column data
type is byte[]
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;
foreach (DataRow dr in ds.Tables[0].Rows)
{
barcode.Data = (int)dr["CustomerId"] + "";
byte[] imageData = barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
}
CrystalReportSource1.ReportDocument.Load(Server.MapPath
("CrystalReport1.rpt"));
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[0]);
CrystalReportSource1.DataBind();
aConnection.Close();
}




Posted By: garychen
Date Posted: 25 Jun 2013 at 6:03pm
Originally posted by jamesjim882

http://www.barcodelib.com/net_crystal_reports/main.html - Barcode Generate SDK for Crystal Report is the most professional .NET DLL Class Library, which provides an easy way for developers to add advanced barcoding and printing capabilities onto Crystal Reports for .NET projects. Once the barcode is installed in a report, no other components or fonts need to be installed to create barcodes.
You can adjust barcode rotation using C#:


I think the essence of his problem is not on the barcode image generating orientation.



Print Page | Close Window