Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Photo Printing Wizard
 

Photo Printing Wizard


It seems that the output from the desktop source, with or without installer, lacks the ability to configure a client to support WIA, whereas the msdn FotoVision Desktop.msi distribution does.

I created a custom version with installer and deployed on client. When attempting to print, an active x related error was thrown. Then, after installing the msdn FotoVision Desktop.msi on the client, and both apps printed without problem.

I don’t quite understand what going out with the Photo Printing Wizard. The docs say

"The wizard is implemented in the system file photowiz.dll but the custom interface is     not exposed. Instead, the Windows Image Acquisition Library (WIA) from Microsoft is   used that provides a COM wrapper for the printing wizard."

Are there any redistributables required to support WIA?

TIA,
Jeff reed
MigrationUser 1  Sunday, August 22, 2004 12:25 AM
Hi Jeff - you are right, the FotoVision Desktop project (code) does not install the WIA support, but the FotoVision Desktop MSI does install the WIA support. 

The desktop app runs the photo wizard through WIA, but Microsoft did not expose this functionality to other apps. Microsoft provides a redistributable component that is a wrapper around WIA that exposes functionality through COM Automation. This component is discussed more at <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wiaaut/wia/wiax/overviews/startpagewiaaut.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wiaaut/wia/wiax/overviews/startpagewiaaut.asp</a>. The FotoVision Desktop MSI installs this component.

Does that help out?
--
ralph arvesen

MigrationUser 1  Monday, August 23, 2004 4:40 PM
I still haven’t figured out the problem, but I have a little more information and a screenshot of the error.

To help troubleshoot the problem I set up a virtual machine with a fresh install of XP. The new system exhibited the same issue as was described in my previous post. 

However, this time I used the precompiled copy of FotoVision which came with the distribution (FotoVision\1.0\VB\Desktop\Bin\FotoVision.exe). As before, when attempting to print an error was thrown: see screenshot of error: http://caml.net/FVPrintError.gif.

After installing FotoVision Desktop.msi, both applications print without error. Interestingly, the xcopied version continued to print correctly after uninstalling FotoVision Desktop.msi. This leads me to think that the FotoVision Desktop.msi installer configured the system in some way.

I checked the GAC before and after installing FotoVision Desktop.msi, but no assemblies were added. 

At this point I am somewhat at a loss. I’m not even sure where to start looking for what system changes were made that allow the system to support the XP Photo Printing Wizard. 

Does anyone have any insight into this issue?

Jeff Reed


MigrationUser 1  Monday, August 23, 2004 7:15 PM
I think there is a long latency delay between our messages due to this being a moderated forum, but I want to see if my previous response cleared up anything. You are exactly right.

- The desktop app does not install anything, it tries to use the WIA COM Automation component. When it tries (and the component is not installed), it catches the exception and displays the error (the error message is not very clear though).

- The MSI installs the redistributable WIA COM Automation component. This is one file called wiaaut.dll (the file is copied and registered). The file is a considered a common system file and is not uninstalled during the FotoVision uninstall. 

--
ralph
MigrationUser 1  Monday, August 23, 2004 11:48 PM
Hi Ralph, there was a lag. I do believe that it is you who is really right. I think understand how it works now. As always, thanks for your insightful response.

jeff
MigrationUser 1  Tuesday, August 24, 2004 12:56 AM

You can use google to search for other answers

Custom Search

More Threads

• TaskVision - Source code installation help needed
• rights system to just download codes???
• Task Vision Modification
• Can I print to a RichTextBox using a StreamWriter?
• Cast from type 'DataRowView' to type 'String' is not valid.
• New Windows Forms Sample Application
• The server is not responding. Please try again.
• Where I can get Terrarium sources?
• The Server is not showing anything!
• FotoVision Navigation Images