.Net调用BarTender SDK及应用
bartender .net sdk的关键dll:Seagull.BarTender.Print.dll;
Print SDK Samples+Print Server SDK Samples(C#及VB调用bartender实现打印的实例)
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 29184 2014-04-01 15:39 Print SDK SamplesLabelPrintinLabelPrint.exe
文件 21538 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.cs
文件 3933 2014-04-01 15:39 Print SDK SamplesLabelPrintC#LabelPrint.csproj
文件 257 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.csproj.vspscc
文件 17092 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.Designer.cs
文件 6230 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.resx
文件 456 2014-04-01 14:52 Print SDK SamplesLabelPrintC#Program.cs
文件 1304 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesAssemblyInfo.cs
文件 3629 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesResources.Designer.cs
文件 6713 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesResources.resx
文件 1068 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesSettings.Designer.cs
文件 249 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesSettings.settings
文件 1560 2014-04-01 14:52 Print SDK SamplesLabelPrintC#ResourcesLoadingError.gif
文件 1388 2014-04-01 14:52 Print SDK SamplesLabelPrintC#ResourcesLoadingFormat.gif
文件 2545 2014-04-01 14:52 Print SDK SamplesLabelPrintC#Resourcesupdating.gif
文件 15562 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.Designer.vb
文件 6230 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.resx
文件 19948 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.vb
文件 3656 2014-04-01 15:39 Print SDK SamplesLabelPrintVBLabelPrint.vbproj
文件 1324 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectAssemblyInfo.vb
文件 3306 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectResources.Designer.vb
文件 6713 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectResources.resx
文件 1101 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectSettings.Designer.vb
文件 249 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectSettings.settings
文件 509 2014-04-01 14:52 Print SDK SamplesLabelPrintVBProgram.vb
文件 1560 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesLoadingError.gif
文件 1388 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesLoadingFormat.gif
文件 2545 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesupdating.gif
文件 17920 2014-04-01 15:39 Print SDK SamplesPrintJobStatusMonitorinPrintJobStatusMonitor.exe
文件 11988 2014-04-01 14:52 Print SDK SamplesPrintJobStatusMonitorC#PrintJobStatusMonitor.cs
............此处省略335个文件信息
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Seagull.BarTender.Print;
using System.Diagnostics;
namespace LabelPrint
{
///
/// Label Print Sample
/// This sample allows the user to open a format select a printer set substrings and print.
///
/// This sample is intended to show how to:
/// -Generate quick thumbnails without first opening a format in BarTender.
/// -Open a Format in BarTender.
/// -Get a list of printers and set the printer on a format.
/// -Set a DataGridView to use the SubStrings collection as a DataSource.
/// -Get and Set the number of serialized copies and the number of identical copies.
/// -Start and Stop a BarTender engine.
///
public partial class LabelPrint : Form
{
#region Fields
// Common strings.
private const string appName = “Label Print“;
private const string dataSourced = “Data Sourced“;
private Engine engine = null; // The BarTender Print Engine
private LabelFormatDocument format = null; // The currently open Format
private bool isClosing = false; // Set to true if we are closing. This helps discontinue thumbnail loading.
// Label browser
private string[] browsingFormats; // The list of filenames in the current folder
Hashtable listItems; // A hash table containing ListViewItems and indexed by format name.
// It keeps track of what formats have had their image loaded.
Queue generationQueue; // A queue containing indexes into browsingFormats
// to facilitate the generation of thumbnails
// Label browser indexes.
int topIndex; // The top visible index in the lstLabelBrowser
int selectedIndex; // The selected index in the lstLabelBrowser
#endregion
#region Enumerations
// Indexes into our image list for the label browser.
enum ImageIndex { LoadingFormatImage = 0 FailureToLoadFormatImage = 1 };
#endregion
#region Constructor
///
/// Constructor
///
public LabelPrint()
{
InitializeComponent();
}
#endregion
#region Delegates
delegate void DelegateShowMessageBox(string message);
#endregion
#region Event Handlers
#region Form Event Handlers
///
/// Called when the user opens the program.
///
///
///
private void LabelPrint_Load(object sender EventArgs e)
{
// Create and start a new BarTender Print Engine.
try
{
engine = new Engine(true);
}
catch (PrintEngineException exception)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 29184 2014-04-01 15:39 Print SDK SamplesLabelPrintinLabelPrint.exe
文件 21538 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.cs
文件 3933 2014-04-01 15:39 Print SDK SamplesLabelPrintC#LabelPrint.csproj
文件 257 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.csproj.vspscc
文件 17092 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.Designer.cs
文件 6230 2014-04-01 14:52 Print SDK SamplesLabelPrintC#LabelPrint.resx
文件 456 2014-04-01 14:52 Print SDK SamplesLabelPrintC#Program.cs
文件 1304 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesAssemblyInfo.cs
文件 3629 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesResources.Designer.cs
文件 6713 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesResources.resx
文件 1068 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesSettings.Designer.cs
文件 249 2014-04-01 14:52 Print SDK SamplesLabelPrintC#PropertiesSettings.settings
文件 1560 2014-04-01 14:52 Print SDK SamplesLabelPrintC#ResourcesLoadingError.gif
文件 1388 2014-04-01 14:52 Print SDK SamplesLabelPrintC#ResourcesLoadingFormat.gif
文件 2545 2014-04-01 14:52 Print SDK SamplesLabelPrintC#Resourcesupdating.gif
文件 15562 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.Designer.vb
文件 6230 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.resx
文件 19948 2014-04-01 14:52 Print SDK SamplesLabelPrintVBLabelPrint.vb
文件 3656 2014-04-01 15:39 Print SDK SamplesLabelPrintVBLabelPrint.vbproj
文件 1324 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectAssemblyInfo.vb
文件 3306 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectResources.Designer.vb
文件 6713 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectResources.resx
文件 1101 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectSettings.Designer.vb
文件 249 2014-04-01 14:52 Print SDK SamplesLabelPrintVBMy ProjectSettings.settings
文件 509 2014-04-01 14:52 Print SDK SamplesLabelPrintVBProgram.vb
文件 1560 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesLoadingError.gif
文件 1388 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesLoadingFormat.gif
文件 2545 2014-04-01 14:52 Print SDK SamplesLabelPrintVBResourcesupdating.gif
文件 17920 2014-04-01 15:39 Print SDK SamplesPrintJobStatusMonitorinPrintJobStatusMonitor.exe
文件 11988 2014-04-01 14:52 Print SDK SamplesPrintJobStatusMonitorC#PrintJobStatusMonitor.cs
............此处省略335个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)