Word Options > Advanced > Untick "Confirm file format conversion on open"

Word Options > Advanced > Untick "Confirm file format conversion on open"
Thanks for the quick work around! But is this the only solution? The script must of messed up some settings?
Regards

I've made a registry hack that seems to work for Windows 7 based on the hack that cache used on XP. More info in this thread:
Right click to print multiple word docs
It's been working, though i occasionally get random save 'normal.dotm' errors, but i don't think that's related to anything.

I just used that script today, from another thread where you reposted it @LosOjos , it does do something funny to convert settings. We're using Win7 with Office 2010. I guess the script was built for Office 2007, or it's just the way it's done, anyway, i fixed it on our setup with the following change to line 44:
I forget which one, i think it's the fourth parameter that asks if you want to allow the converter for non word files. Changing it to false fixed it. Without it set, Word still opens the files fine as they are associated, and SIMS will print and preview okay (well, as well as it does) without a hidden prompt popping under.Code:myWord.Documents.Open filePath, False, True, False, , , False, , , 8, , True
HTHs.
@altecsole - great script by the way - does the trick and resolves the issue with the order of documents being muddled up, using any other bulk print method, such as putting in the right click context menu hack etc.
Just wanted to put this on as I ran into this situation trying to convert the Infopath xml docs into a PDF writer.
I tried the right click print registry hack and modified it to open Infopath instead of Word. This ultimately failed due to the lack of switches I could find that would allow Infopath to open print close.
I tried the Bulk print vbs script on here. This did what it was supposed to but Word only pulls the XML raw code not the Infopath forms so it was not what i needed.
Finally I stumbled on a Powershell scritpt that works Perfectly. Credit here bsonposh .com /archives /468 /BSonPoSH
Printing Multiple InfoPath forms
Install details for novice users
Copy the Text between the dashed lines into Notepad. Then change the line containing "\\sharepoint.corp.com\Form_Folder" to the location of the folder needing converted for example "c:\sharepoint\Forms"
Close and Save the notepad. Now rename the .txt extention to ps1. Double Click and your off and running. FYI should you need to edit the PS1 file, Right Click Edit. The script will automatically launch the Powershell interface which you can edit in as well.
* Note if you are converting to PDF you will need a PDF writer set as the default printer. Your pdf printer should be configured to print out using the same name as the current name in Infopath so everything is kept orderly. Test on a small folder before trying a big converson.
---------------------------------------------------------------------------------------
Param($Path = "\\sharepoint.corp.com\Form_Folder",[switch]$verbose)
Write-Host
function Invoke-FormPrint
{
Param($InfoForm)
$shortname = $InfoForm.name
Write-Verbose " – FormPrint: Creating COM Object"
$infopath = New-Object -com InfoPath.Application -verbose:$false
Write-Verbose " – FormPrint: Calling Open(`$InfoForm.fullname,10)"
$infopath.XDocuments.Open($InfoForm.fullname,10) | out-null
Write-verbose " – FormPrint: Calling PrintOut()"
$infopath.XDocuments[0].printout()
sleep 10
Write-verbose " – FormPrint: Calling Quit()"
$infopath.quit()
if(!$?)
{
Write-Host " - Error printing Form: $shortname" -fore RED
}
else
{
Write-Host " - Successfully printed Form: $shortname" -fore Green
}
}
$erroractionpreference = "silentlycontinue"
if($verbose){$verbosepreference="continue";$errora ctionpreference="continue"}
Write-Verbose " + Processing all Forms from: $path"
$Forms = dir $path "*.xml"
Write-Verbose " + $($Forms.count) Forms found"
Write-host " + Processing all $($Forms.count) Forms located at: $path" -fore White
foreach($Form in $Forms)
{
Write-Host " + Printing Form: $($Form.Name)" -fore White
Invoke-FormPrint $Form
}
-----------------------------------------------------------------------------------------------------------
Windows 7 with Office 2010
There are currently 1 users browsing this thread. (0 members and 1 guests)