I am using the neodynamic dll and generating the barcode image in crystal report . I am able to get the barcode image in crystal report but when export it barcode image is not diplaying...
Hi! Glad to hear you are using our product. In order to assist you with the issue, I'd need to know more about your scenario. Post here some code that show me how did you use our tool there or
contact our support directly
Barcode, Labeling, Printing & Imaging tools for ASP.NET Developers
Just to clarify things here. You said that the barcode image is displayed on the report, right? but that when you export it the barcode image is missing? How do you export the report? through code or Crystal Report's Viewer toolbar? thanks,
Barcode, Labeling, Printing & Imaging tools for ASP.NET Developers
Your code seems to be ok. The only thing to try out is changing the output image formate of the generated barcode. You are specifying PNG as the format, so try playing with other format like JPEG, BMP, GIF. In your code chnage your line to this:
1. To change the barcode size you must use BarWidth & BarHeight properties. BarWidth refers to the width of the narrow bar in a Code 39 symbol. By default, it is about 0.01 inch. Try 0.0208 and play with it. The Height of all bars is specified by BarHeight
property.
2. It's a commercial product and trial can be removed after purchasing a license. Contact us referring to this thread and we'll provide you some discount.
Barcode, Labeling, Printing & Imaging tools for ASP.NET Developers
I want print the label of size 20mX70mm and i converted to inch and printed . But the sticker will not be printed properly, image is too small and printed verticaly on sticker but it should be horizontal.
please tell me where i need to change in coding and code is below
foreach (DataRow row in dsCustomers.Tables[0].Rows)
{
kbharath85
0 Points
10 Posts
In export option of Crystal report image not displaying
Oct 30, 2012 06:20 AM|LINK
I am using the neodynamic dll and generating the barcode image in crystal report . I am able to get the barcode image in crystal report but when export it barcode image is not diplaying...
Help me please...
Thanks in advance...
Neodynamic
Participant
1008 Points
289 Posts
Re: In export option of Crystal report image not displaying
Oct 30, 2012 10:51 AM|LINK
Hi! Glad to hear you are using our product. In order to assist you with the issue, I'd need to know more about your scenario. Post here some code that show me how did you use our tool there or contact our support directly
kbharath85
0 Points
10 Posts
Re: In export option of Crystal report image not displaying
Nov 02, 2012 05:42 AM|LINK
This is the code am using and in crystal report Barcode image file to display the barcode.
private void barcodeTest()
{
System.Data.SqlClient.SqlConnection cnn = new System.Data.SqlClient.SqlConnection(@"Data Source=ABC\sql2008;Initial Catalog=ABC2012 ;UID=sa ;PWD=abcd");
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand();
cmd.Connection = cnn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "BarcodeTest";
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(cmd);
DataSet dsCustomers = new DataSet();
da.Fill(dsCustomers);
Neodynamic.WebControls.BarcodeProfessional.BarcodeProfessional bcp = new Neodynamic.WebControls.BarcodeProfessional.BarcodeProfessional();
bcp.Symbology = Neodynamic.WebControls.BarcodeProfessional.Symbology.Code39;
bcp.Extended = true;
bcp.AddChecksum = false;
bcp.BarHeight = 0.4f;
bcp.QuietZoneWidth = 0;
foreach (DataRow row in dsCustomers.Tables[0].Rows)
{
bcp.Code = row["CustomerID"].ToString();
row["Barcode"] = bcp.GetBarcodeImage(System.Drawing.Imaging.ImageFormat.Png);
}
rptdoc = new ReportDocument();
rptdoc.Load(Server.MapPath("../Reports/CrystalReportBarcode.rpt"));
CrystalReportViewer1.LogOnInfo = clsReportAuthentication.ReportAuthentication(rptdoc);
CrystalReportViewer1.HasToggleGroupTreeButton = false;
CrystalReportViewer1.HasCrystalLogo = false;
CrystalReportViewer1.DisplayGroupTree = false;
CrystalReportViewer1.HasDrillUpButton = false;
CrystalReportViewer1.HasViewList = false;
CrystalReportViewer1.ReportSource = rptdoc;
rptdoc.SetDataSource(dsCustomers.Tables[0]);
Session["ReportDoc"] = rptdoc;
PanelDesign.Visible = false ;
PnlReport.Visible = true ;
}
Neodynamic
Participant
1008 Points
289 Posts
Re: In export option of Crystal report image not displaying
Nov 02, 2012 09:57 AM|LINK
Just to clarify things here. You said that the barcode image is displayed on the report, right? but that when you export it the barcode image is missing? How do you export the report? through code or Crystal Report's Viewer toolbar? thanks,
kbharath85
0 Points
10 Posts
Re: In export option of Crystal report image not displaying
Nov 05, 2012 05:31 AM|LINK
Through Crystal Report's Viewer toolbar am exporting to Pdf.... thanks..
Neodynamic
Participant
1008 Points
289 Posts
Re: In export option of Crystal report image not displaying
Nov 05, 2012 09:36 AM|LINK
Your code seems to be ok. The only thing to try out is changing the output image formate of the generated barcode. You are specifying PNG as the format, so try playing with other format like JPEG, BMP, GIF. In your code chnage your line to this:
row["Barcode"] = bcp.GetBarcodeImage(System.Drawing.Imaging.ImageFormat.Jpeg);
If it does not work, then try BMP or GIF. Let me know how it works now.
kbharath85
0 Points
10 Posts
Re: In export option of Crystal report image not displaying
Nov 29, 2012 10:25 AM|LINK
@Neodynamic Sorry for late reply....
Its working now.... I have added barcode generate method while page init.
As you know earlier am using neodynamics dll to generate barcode .
I have some queries
1.how can i change the width and hieght of barcode.
2. How trail word in the image can be removed .
reply me...
thanks in advance
Neodynamic
Participant
1008 Points
289 Posts
Re: In export option of Crystal report image not displaying
Nov 29, 2012 08:13 PM|LINK
Hi,
1. To change the barcode size you must use BarWidth & BarHeight properties. BarWidth refers to the width of the narrow bar in a Code 39 symbol. By default, it is about 0.01 inch. Try 0.0208 and play with it. The Height of all bars is specified by BarHeight property.
2. It's a commercial product and trial can be removed after purchasing a license. Contact us referring to this thread and we'll provide you some discount.
kbharath85
0 Points
10 Posts
Re: In export option of Crystal report image not displaying
Nov 30, 2012 08:44 AM|LINK
Thanks for your answer ..... we will get back to you regarding this.
Height and width is working fine...
Thank you....
kbharath85
0 Points
10 Posts
Re: In export option of Crystal report image not displaying
Dec 13, 2012 05:07 AM|LINK
@Neodynamic
Hi,
I want print the label of size 20mX70mm and i converted to inch and printed . But the sticker will not be printed properly, image is too small and printed verticaly on sticker but it should be horizontal.
please tell me where i need to change in coding and code is below
foreach (DataRow row in dsCustomers.Tables[0].Rows)
{
string temp = row["CustomerID"].ToString().Trim ();
byte[] temp1 = null;
string query = string.Empty;
BarcodeProfessional BCP = new BarcodeProfessional();
BCP.Symbology = Symbology.Code128;
BCP.Extended = true;
BCP.AddChecksum = false;
BCP.BarHeight = 0.5f;
BCP.Code = temp;
temp1 = BCP.GetBarcodeImage(System.Drawing.Imaging.ImageFormat.Bmp);
row["Barcode"] = temp1;
}
rptdoc = new ReportDocument();
Session["ReportDoc"] = rptdoc;
rptdoc.Load(Server.MapPath("../Reports/CrystalReportBarcode.rpt"));
CrystalReportViewer1.LogOnInfo = clsReportAuthentication.ReportAuthentication(rptdoc);
CrystalReportViewer1.HasToggleGroupTreeButton = false;
CrystalReportViewer1.HasCrystalLogo = false;
CrystalReportViewer1.DisplayGroupTree = false;
CrystalReportViewer1.HasDrillUpButton = false;
CrystalReportViewer1.HasViewList = false;
CrystalReportViewer1.ReportSource = rptdoc;
rptdoc.SetDataSource(dsCustomers.Tables[0]);
CrystalReportViewer1.ReportSource = rptdoc;
Session["ReportDoc"] = rptdoc;
Thanks in advance...