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 6.0


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 6.0
'
' 3) In Visual Basic main menu press "Project->References"
'
' 4) In "References" 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"
  Set UDCProfile = UDCPrinter.Profile(UDCPrinter.DefaultProfile)

  UDCProfile.ImageFileFormat = FMT_TIFF
  UDCProfile.MultiPageMode(FMT_TIFF) = MM_ONE_DOCUMENT
  UDCProfile.ImageFileColorDepth(FMT_TIFF) = 1
  UDCProfile.DitherImage(FMT_TIFF) = 0
  UDCProfile.CompressionMethod(FMT_TIFF) = CMP_CCITT_FAX4

End Sub



Related topics
Popular pages
Popular solutions


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