I spent about a day trying to find a way to invoke the Windows Photo Printing Wizard. I'm not very familiar with the magic incantations of COM so the complicated ways I found were making me dizzy. But I eventually found out that there is very easy solution. I'm posting it here both to help others who may be struggling with the same thing and because I'm very pleased with myself!
Code:
#include once "wiapb.inc" 'Declarations for WIAAUT.DLL created by PB's 'COM Browser (PBROW.EXE) or Jose Roca's TypeLib Browser (TLB_xxx.EXE). function PrintImage ( _________________________________________________________ swFileName as wstring _ ) as long '------------------------------------------------------------------------------ ' ' Invokes the standard Windows Print Photos Wizard. ' '------------------------------------------------------------------------------ local ComDialog as ICommonDialog ComDialog = newcom "WIA.CommonDialog" ComDialog.ShowPhotoPrintingWizard swFileName ComDialog = nothing end function
Comment