Compartir a través de


CommonDialog.ShowPhotoPrintingWizard method

Starts the Photo Printing Wizard with the absolute path of a specific file or Vector of absolute paths to files.

Syntax

CommonDialog.ShowPhotoPrintingWizard( _
  ByVal Files As VARIANT _
) As HRESULT

Parameters

Files [in]

Type: VARIANT*

Required. Variant value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

The following example shows how to launch the Photo Printing Wizard to print some of the sample pictures from Windows XP.

Dim v 'As Vector

Set v = CreateObject("WIA.Vector")

v.Add "C:\WINDOWS\Web\Wallpaper\Ascent.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Autumn.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Azul.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Follow.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Red moon desert.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Stonehenge.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Tulips.jpg"
v.Add "C:\WINDOWS\Web\Wallpaper\Wind.jpg"

CommonDialog1.ShowPhotoPrintingWizard v

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

CommonDialog