Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Barcode label page orientation Post Reply Post New Topic
Author Message
sinking
Newbie
Newbie
Avatar

Joined: 03 Mar 2012
Location: Malaysia
Online Status: Offline
Posts: 1
Quote sinking Replybullet Topic: Barcode label page orientation
    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?
IP IP Logged
tonytr
Newbie
Newbie


Joined: 29 Feb 2012
Location: Canada
Online Status: Offline
Posts: 6
Quote tonytr Replybullet 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
IP IP Logged
jamesjim882
Newbie
Newbie


Joined: 03 Jan 2013
Online Status: Offline
Posts: 4
Quote jamesjim882 Replybullet Posted: 24 Jan 2013 at 10:03pm
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();
}


IP IP Logged
garychen
Newbie
Newbie


Joined: 14 Jan 2013
Online Status: Offline
Posts: 6
Quote garychen Replybullet Posted: 25 Jun 2013 at 6:03pm
Originally posted by jamesjim882

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.


Edited by garychen - 25 Jun 2013 at 6:04pm
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.