Barocode is all same when print to pdf

Stimulsoft Reports.NET discussion
Post Reply
silade
Posts: 16
Joined: Thu Feb 05, 2009 2:03 am

Barocode is all same when print to pdf

Post by silade »

It is normal when preview in StiWebViewer.But when click print to pdf,the barcodes are all the same in adobe reader?why?
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Barocode is all same when print to pdf

Post by Ivan »

Hello,

We have fixed this bug about a two week ago.
Please check the latest build.
If the issue is still present, please send to us a mrt and mdc file of the rendered report.

Thank you.
silade
Posts: 16
Joined: Thu Feb 05, 2009 2:03 am

Barocode is all same when print to pdf

Post by silade »

Ivan wrote:Hello,

We have fixed this bug about a two week ago.
Please check the latest build.
If the issue is still present, please send to us a mrt and mdc file of the rendered report.
Thank you.
One of my reports work well.But this reports does not work.I do not why?this is my code.

Code: Select all

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
    
    public class Report : Stimulsoft.Report.StiReport
    {
        
        public Report()
        {
            this.InitializeComponent();
        }
        #region StiReport Designer generated code - do not modify
        public Stimulsoft.Report.Components.StiPage Page1;
        public Stimulsoft.Report.Components.StiDataBand DataBarocde4X20;
        public Stimulsoft.Report.BarCodes.StiBarCode BarCode1;
        public Stimulsoft.Report.Components.StiWatermark Page1_Watermark;
        public Stimulsoft.Report.Print.StiPrinterSettings Report_PrinterSettings;
        public Stimulsoft.Report.StiStyle StyleStyle1;
        public Barocde4X20DataSource Barocde4X20;
        
        public void BarCode1__GetBarCode(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
        {
            e.Value = Barocde4X20.sBarcode;
        }
        
        private void InitializeComponent()
        {
            this.Barocde4X20 = new Barocde4X20DataSource();
            this.NeedsCompiling = false;
            this.EngineVersion = Stimulsoft.Report.Engine.StiEngineVersion.EngineV2;
            this.ReferencedAssemblies = new System.String[] {
                    "System.Dll",
                    "System.Drawing.Dll",
                    "System.Windows.Forms.Dll",
                    "System.Data.Dll",
                    "System.Xml.Dll",
                    "Stimulsoft.Controls.Dll",
                    "Stimulsoft.Base.Dll",
                    "Stimulsoft.Report.Dll"};
            this.ReportAlias = "Report";
            // 
            // ReportChanged
            // 
            this.ReportChanged = new DateTime(2009, 2, 10, 8, 51, 59, 984);
            // 
            // ReportCreated
            // 
            this.ReportCreated = new DateTime(2009, 2, 6, 14, 43, 43, 0);
            this.ReportGuid = "3a0c49797dc042d29f80b800f118c131";
            this.ReportName = "Report";
            this.ReportUnit = Stimulsoft.Report.StiReportUnitType.Centimeters;
            this.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
            // 
            // Page1
            // 
            this.Page1 = new Stimulsoft.Report.Components.StiPage();
            this.Page1.Guid = "df4dc8e8d24349179ae34843a23cb77e";
            this.Page1.Name = "Page1";
            this.Page1.PageHeight = 27.9;
            this.Page1.PageWidth = 21.6;
            this.Page1.PaperSize = System.Drawing.Printing.PaperKind.Letter;
            this.Page1.StretchToPrintArea = true;
            this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 2, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
            this.Page1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            // 
            // DataBarocde4X20
            // 
            this.DataBarocde4X20 = new Stimulsoft.Report.Components.StiDataBand();
            this.DataBarocde4X20.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 21.6, 1.35);
            this.DataBarocde4X20.Columns = 4;
            this.DataBarocde4X20.ColumnWidth = 5.4;
            this.DataBarocde4X20.DataRelationName = "";
            this.DataBarocde4X20.DataSourceName = "Barocde4X20";
            this.DataBarocde4X20.MaxHeight = 0;
            this.DataBarocde4X20.MinHeight = 0;
            this.DataBarocde4X20.Name = "DataBarocde4X20";
            this.DataBarocde4X20.Sort = new System.String[0];
            this.DataBarocde4X20.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
            this.DataBarocde4X20.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            // 
            // BarCode1
            // 
            this.BarCode1 = new Stimulsoft.Report.BarCodes.StiBarCode();
            this.BarCode1.BackColor = System.Drawing.Color.Transparent;
            this.BarCode1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 5.2, 1.2);
            this.BarCode1.GetBarCode += new Stimulsoft.Report.Events.StiValueEventHandler(this.BarCode1__GetBarCode);
            this.BarCode1.ForeColor = System.Drawing.Color.Black;
            this.BarCode1.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
            this.BarCode1.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
            this.BarCode1.Name = "BarCode1";
            this.BarCode1.BarCodeType = new Stimulsoft.Report.BarCodes.StiEAN13BarCodeType(13F, 1F, Stimulsoft.Report.BarCodes.StiEanSupplementType.None, null);
            this.BarCode1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
            this.BarCode1.Guid = null;
            this.DataBarocde4X20.Guid = null;
            this.DataBarocde4X20.MasterComponent = null;
            this.Page1.ExcelSheetValue = null;
            this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
            this.Page1_Watermark = new Stimulsoft.Report.Components.StiWatermark();
            this.Page1_Watermark.Font = new System.Drawing.Font("Arial", 100F);
            this.Page1_Watermark.Image = null;
            this.Page1_Watermark.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(50, 0, 0, 0));
            this.Report_PrinterSettings = new Stimulsoft.Report.Print.StiPrinterSettings();
            // 
            // StyleStyle1
            // 
            this.StyleStyle1 = new Stimulsoft.Report.StiStyle();
            this.StyleStyle1.Name = "Style1";
            this.StyleStyle1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
            this.StyleStyle1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
            this.StyleStyle1.Font = new System.Drawing.Font("Arial", 8F);
            this.StyleStyle1.TextBrush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
            this.PrinterSettings = this.Report_PrinterSettings;
            this.Page1.Page = this.Page1;
            this.Page1.Report = this;
            this.Page1.Watermark = this.Page1_Watermark;
            this.DataBarocde4X20.Page = this.Page1;
            this.DataBarocde4X20.Parent = this.Page1;
            this.BarCode1.Page = this.Page1;
            this.BarCode1.Parent = this.DataBarocde4X20;
            // 
            // Add to DataBarocde4X20.Components
            // 
            this.DataBarocde4X20.Components.Clear();
            this.DataBarocde4X20.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.BarCode1});
            // 
            // Add to Page1.Components
            // 
            this.Page1.Components.Clear();
            this.Page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
                        this.DataBarocde4X20});
            // 
            // Add to Pages
            // 
            this.Pages.Clear();
            this.Pages.AddRange(new Stimulsoft.Report.Components.StiPage[] {
                        this.Page1});
            // 
            // Add to Styles
            // 
            this.Styles.Clear();
            this.Styles.AddRange(new Stimulsoft.Report.StiBaseStyle[] {
                        this.StyleStyle1});
            this.Barocde4X20.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
                        new Stimulsoft.Report.Dictionary.StiDataColumn("sBarcode", "sBarcode", "sBarcode", typeof(string))});
            this.DataSources.Add(this.Barocde4X20);
            this.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection", "Connection", "Data Source=.;Initial Catalog=ILS;Integrated Security=True", false));
            this.Barocde4X20.Connecting += new System.EventHandler(this.GetBarocde4X20_SqlCommand);
        }
        
        public void GetBarocde4X20_SqlCommand(object sender, System.EventArgs e)
        {
            this.Barocde4X20.SqlCommand = "select \'\' sBarcode where 0=1";
        }
        
        #region DataSource Barocde4X20
        public class Barocde4X20DataSource : Stimulsoft.Report.Dictionary.StiSqlSource
        {
            
            public Barocde4X20DataSource() : 
                    base("Connection", "Barocde4X20", "Barocde4X20", "", true, false, 30)
            {
            }
            
            public virtual string sBarcode
            {
                get
                {
                    return ((string)(StiReport.ChangeType(this["sBarcode"], typeof(string), true)));
                }
            }
        }
        #endregion DataSource Barocde4X20
        #endregion StiReport Designer generated code - do not modify
    }
}
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Barocode is all same when print to pdf

Post by Ivan »

Hello,
silade wrote:One of my reports work well. But this reports does not work. I do not why?
Problem appears, if barcode has a transparent background color.

We have fixed this bug about a two week ago.
Please check the latest build.

Thank you.
Post Reply