Developer Tools
|
Office Productivity Applications
|
Enterprise Solutions
|
|||||||||||||||||||||||||||
Important
This product has been discontinued. Please check our old products page for more information.
In my last article, you learned about the basics of using Gnostice Print2eDoc SDK. This month, you will learn about using the SDK for specifying advanced document creation settings.
In the Gnostice Print2eDoc application, Document Creation Profiles allow users to save their customized settings for later reuse. Profiles contain document creation settings specific to different output formats. It also includes settings to control additional actions such as e-mail, FTP, NNTP and watermarks.
Naturally, Print2eDoc SDK allows you to create new profiles, access them, and modify them as per your requirements.
In this direction, the CurrentProfile property of the IgtPrint2eDoc will be your main focus.
This property is of the type IgtProfileSettings.
It contains all format-specific properties for a given profile.
Alternatively, this object can be thought to be representing properties of various controls on the dialog Advance Document Creation Properties in the Print2eDoc application.
Here are the steps for making changes to a profile.
IgtPrint2eDoc.SelectCurrentProfile(string ProfileName).IgtProfileSettings object returned by method IgtPrint2eDoc.CurrentProfile().IgtProfileSettings object.IgtPrint2eDoc.ApplyChangesToCurrentProfile() method.Dim PrinterObj As New gtPrint2eDoc 'Create an IgtProfileSettings object Dim ProfileObj As gtProfileSettingsX 'Set a profile as current PrinterObj.SelectCurrentProfile ("My Profile") 'Create a reference to the IgtProfileSettings 'object of the current profile Set ProfileObj = PrinterObj.CurrentProfile 'Specify a few general settings ProfileObj.DocInfoAuthor = "Avinash Shrigani" ProfileObj.DocInfoTitle = "Gnostice Print2eDoc SDK Demo" ProfileObj.DocInfoSubject = _ "Document File Format Conversion With Print2eDoc SDK - II" ProfileObj.DocInfoCreator = "Gnostice Print2eDoc SDK" ProfileObj.DocInfoKeywords = _ "Advanced Document Creation Settings, Print2eDoc, SDK, demo" 'Specify a few PDF-specific settings ProfileObj.PDFRenderTextItem = True ProfileObj.PDFRenderImageItem = True ProfileObj.PDFRenderDrawingItem = False ProfileObj.PDFActivateLinks = True 'Save above changes to current profile PrinterObj.ApplyChangesToCurrentProfile 'Print a document with the new document 'creation settings PrinterObj.PrintDocument("C:\Sample.txt")
| Privacy | Legal | Feedback | Newsletter | © 2002-2010 Gnostice Information Technologies Private Limited. All rights reserved. |
This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows users are advised to use Microsoft ClearType Tuning for optimal experience. Linux and other users can enable font smoothing, as supported by their OS. Also, please use the latest version of a standards-compliant browser such as Opera, FireFox, Chrome or Safari.