Universal Document Converter
Product Overview
Download
Purchase
Tutorials
Developer Solutions
Support Service
About fCoder Group


      Site search
   


      Video tutorial
Show tutorial


Main page>Developer Solutions>COM Examples

Change Output Image File Format Using Visual Basic.NET


Universal Document Converter is virtual printer software that saves any document you print as an image file. Below is a source code example that can help you to accomplish your task with Universal Document Converter. Please let us know if you cannot find the solution you need.

' 1) Install Universal Document Converter 3.0 or above on your PC
'
' 2) Open your project in Microsoft Visual Basic.NET
'
' 3) In Visual Basic main menu press "Project->Add Reference..."
'
' 4) In "Add Reference" window press "Browse..." button and select
'    UDCWrapper.dll file. By default this file should be in folder
'    "C:\Program Files\Universal Document Converter\SDK\bin"
'
' Universal Document Converter COM interface is ready to use now!

Private Sub ChangeOutputImageFileFormat()

  Dim UDCPrinter As New UDCWRAPPERLib.Printer
  Dim UDCProfile As UDCWRAPPERLib.Profile

  UDCPrinter.PrinterName = "Universal Document Converter"
  UDCProfile = UDCPrinter.Profile(UDCPrinter.DefaultProfile)

  UDCProfile.ImageFileFormat = UDCWRAPPERLib.IMAGE_FORMAT.FMT_TIFF
  UDCProfile.MultiPageMode(UDCProfile.ImageFileFormat) = _
                          UDCWRAPPERLib.MULTIPAGE_MODE.MM_ONE_DOCUMENT

  UDCProfile.ImageFileColorDepth(UDCProfile.ImageFileFormat) = 1
  UDCProfile.DitherImage(UDCProfile.ImageFileFormat) = 0
  UDCProfile.CompressionMethod(UDCProfile.ImageFileFormat) = _
                          UDCWRAPPERLib.IMAGE_COMPRESSION.CMP_CCITT_FAX4

End Sub



Related topics
Popular pages
Popular solutions


© 2001-2008 fCoder Group, Inc. About fCoder Group | Privacy Policy | Site Map