Excel viewer hangs when called by cPrintFile in LabVIEW

Hi,


I have developed an application in LabVIEW which prints Excel files into PDF files. It works fine on my development machine, but not on the run-time PC.

I have followed execution step by step in my LabVIEW code on the run-time machine. It adjusts the settings (like auto save directory, etc) without any problem. When it comes to cPrintFile, I do NOT see the excel viewer window momentarily opened (in contrast to what happens on the development PC). The LabVIEW application hangs in executing cPrintFile. When I check windows process list, XLVIEW.exe is there as a process not application. If I terminate XLVIEW process, the labview code continues to run, but without printing the xls file to a pdf file. What could cause such a problem? I have tried uninstalling/reinstalling without success. Is there any settings, permission settings I am missing?

using:
Windows 7 32-bit (on both machines)
Excel Viewer 2003 (on both machines)
PDFCreator 1.4.3 (on both machines)

Thanks a bunch!
Soroush

Maybe I should add that, I have two (seemingly) identical run-time machines. In one of them I accidentally fixed the problem by uninstalling and reinstalling, excel viewer, pdfcreator (several versions), adobe reader, and manually clearing windows registry keys containing “PDFCreator” a couple of times, but it seems that I cannot reproduce the exact same messy solution on the other machine!