Skip to content

Commit

Permalink
Lightweight version - removed Neodynamic SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukk94 committed Aug 9, 2020
1 parent 42c9863 commit 8b785ca
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 1,025 deletions.
25 changes: 0 additions & 25 deletions App.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="oracle.manageddataaccess.client"
type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.18.3, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
</configSections>
<runtime>
<dependentAssembly>
<assemblyIdentity name="Neodynamic.SDK.ThermalLabel" publicKeyToken="0630b9b3415848af" culture="neutral"/>
Expand All @@ -12,26 +8,5 @@
<codeBase version="7.0.3500.0" href="Neodynamic.SDK.ThermalLabel.dll"/>
<codeBase version="8.0.0.0" href="Neodynamic.SDK.ThermalLabel_v8.dll"/>
</dependentAssembly>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<publisherPolicy apply="no"/>
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
<bindingRedirect oldVersion="4.122.0.0 - 4.65535.65535.65535" newVersion="4.122.18.3"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>
<remove invariant="Oracle.ManagedDataAccess.Client"/>
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver"
type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.18.3, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
</DbProviderFactories>
</system.data>
<oracle.manageddataaccess.client>
<version number="*">
<dataSources>
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>
</dataSources>
</version>
</oracle.manageddataaccess.client>
</configuration>
41 changes: 0 additions & 41 deletions IPrintService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,6 @@ public interface IPrintService
/// <returns>Returns <see cref="PrintResult"/> with printing details</returns>
PrintResult Print(string printerCommands, PrintServiceLibrary.PrinterSettings printerSettings, bool waitForResponse = false);

#region XML Template printing
/// <summary>
/// Prints label template via designated printer without any binding
/// </summary>
/// <param name="xmlTemplate">XML label template containing label layout</param>
/// <param name="printerSettings"><see cref="PrintServiceLibrary.PrinterSettings"/> structure containing all connection details</param>
/// <param name="uploadUsedFonts">Should API upload used fonts to the printer memory?</param>
/// <returns>Returns <see cref="PrintResult"/> with printing details</returns>
PrintResult PrintXmlTemplate(string xmlTemplate, PrintServiceLibrary.PrinterSettings printerSettings, bool uploadUsedFonts = false);

/// <summary>
/// Prints label template via designated printer, including data binding
/// </summary>
/// <param name="xmlTemplate">XML label template containing label layout</param>
/// <param name="printerSettings"><see cref="PrintServiceLibrary.PrinterSettings"/> structure containing all connection details</param>
/// <param name="data">Data for data binding</param>
/// <param name="dataSource">Data source type defined by <see cref="DataSourceType"/></param>
/// <param name="uploadUsedFonts">Should API upload used fonts to the printer memory?</param>
/// <returns>Returns <see cref="PrintResult"/> with printing details</returns>
PrintResult PrintXmlTemplate(string xmlTemplate, PrintServiceLibrary.PrinterSettings printerSettings, object data, DataSourceType dataSource = DataSourceType.None, bool uploadUsedFonts = false);
#endregion

#region Print via USB
/// <summary>
/// Sends commands via USB to ZEBRA printer
Expand Down Expand Up @@ -207,24 +185,5 @@ public interface IPrintService
/// <returns>Return list of printer names</returns>
List<string> LoadInstalledPrinters();
#endregion

#region Preview ZPL
/// <summary>
/// Creates ZPL preview based on the XML label template without any data binding
/// </summary>
/// <param name="xmlTemplate">XML label template containing label layout</param>
/// <param name="dpi">DPI of the preview</param>
/// <returns>Returns <see cref="PrintResult"/> with ZPL preview in Message property</returns>
PrintResult PreviewZPLPrint(string xmlTemplate, double dpi);

/// <summary>
/// Creates ZPL preview based on the XML label template with complete data binding
/// </summary>
/// <param name="xmlTemplate">XML label template containing label layout</param>
/// <param name="data">Data for data binding</param>
/// <param name="dataSource">Data source type defined by <see cref="DataSourceType"/></param>
/// <returns>Returns <see cref="PrintResult"/> with ZPL preview in Message property</returns>
PrintResult PreviewZPLPrint(string xmlTemplate, double dpi, DataSourceType dataSource, object data);
#endregion
}
}
232 changes: 0 additions & 232 deletions Print/DatabaseQuery.cs

This file was deleted.

Loading

0 comments on commit 8b785ca

Please sign in to comment.