Class DefaultPrintConfigurationProvider
Default implementation of the simplic printer provider. The main task is to communicate with the database
Inheritance
System.Object
DefaultPrintConfigurationProvider
Namespace: Simplic.Framework.Printing
Assembly: Simplic.Framework.dll
Syntax
public class DefaultPrintConfigurationProvider : IPrinterConfigurationProvider
Methods
| Improve this Doc View SourceGetConfiguration(Guid)
Get a printer and it's configuration
Declaration
public Printer GetConfiguration(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Get a printer by unique id |
Returns
Type | Description |
---|---|
Printer | If found an instance of a printer will be returned |
GetConfiguration(Guid, Boolean)
Get a printer and it's configuration
Declaration
public Printer GetConfiguration(Guid id, bool ignoreRedirection)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Get a printer by unique id |
System.Boolean | ignoreRedirection | If set to true, redirections will be ignored |
Returns
Type | Description |
---|---|
Printer | If found an instance of a printer will be returned |
GetConfiguration(String)
Get the configuration for a printer from the database
Declaration
public Printer GetConfiguration(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the printer (unique) |
Returns
Type | Description |
---|---|
Printer | Instance of a Printer if found, else null |
SaveConfiguration(Printer)
Save printer configuration to the database
Declaration
public void SaveConfiguration(Printer configuration)
Parameters
Type | Name | Description |
---|---|---|
Printer | configuration | Require an instance of a Printer to save in the simplic database |