资源简介
模版以及相关dll示例
代码片段和文件信息
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)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 191056 2014-04-01 15:38 BarTender相关dll\BarTender-net SDK\Assemblies\BarTenderPrintClient.dll
文件 275536 2014-04-01 15:23 BarTender相关dll\BarTender-net SDK\Assemblies\Seagull.BarTender.Print.dll
文件 1007432 2014-04-01 15:23 BarTender相关dll\BarTender-net SDK\Assemblies\Seagull.BarTender.Print.xm
文件 29184 2014-04-01 15:39 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\bin\LabelPrint.exe
文件 21538 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\LabelPrint.cs
文件 3933 2014-04-01 15:39 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\LabelPrint.csproj
文件 257 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\LabelPrint.csproj.vspscc
文件 17092 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\LabelPrint.Designer.cs
文件 6230 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\LabelPrint.resx
文件 456 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Program.cs
文件 1304 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Properties\AssemblyInfo.cs
文件 3629 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Properties\Resources.Designer.cs
文件 6713 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Properties\Resources.resx
文件 1068 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Properties\Settings.Designer.cs
文件 249 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Properties\Settings.settings
文件 1560 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Resources\LoadingError.gif
文件 1388 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Resources\LoadingFormat.gif
文件 2545 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\C#\Resources\updating.gif
文件 15562 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\LabelPrint.Designer.vb
文件 6230 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\LabelPrint.resx
文件 19948 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\LabelPrint.vb
文件 3656 2014-04-01 15:39 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\LabelPrint.vbproj
文件 1324 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\My Project\AssemblyInfo.vb
文件 3306 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\My Project\Resources.Designer.vb
文件 6713 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\My Project\Resources.resx
文件 1101 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\My Project\Settings.Designer.vb
文件 249 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\My Project\Settings.settings
文件 509 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\Program.vb
文件 1560 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\Resources\LoadingError.gif
文件 1388 2014-04-01 14:52 BarTender相关dll\BarTender-net SDK\Print SDK Samples\LabelPrint\VB\Resources\LoadingFormat.gif
............此处省略380个文件信息
- 上一篇:uml的课程设计报告
- 下一篇:全国矢量数据248844
评论
共有 条评论