Posts

Showing posts from March, 2011

Design has Evolved | tuning.bind.pt

Image
Web design just became easier with BIND TUNING . Available now for Orchard, DotNetNuke and SharePoint Themes, this amazing all-in-one platform let's you build up your own site theme, quickly and easily, without any design or development knowledge. Customize and recustomize, add background images, background layers, choose menu designs and looks, paint it with different colors for the various page components and see how it will actually look BEFORE you even buy it, in the exact CSS and HTML the chosen CMS uses. Build simple, yet astonishing site-morphing layouts for your collaboration platforms. Try it NOW .

Orchard | Make NuGet files downloadable

Go to IIS, Site, Mime Types Add: Extension: ".nupkg" Type: "application/x-compress" other types: application/octet-stream application/zip

PowerShell | Word fails to open documents as a background service

System: Windows 2008 Server Environment: PowerShell + Microsoft.Office.Interop.Word.ApplicationClass (word.application) (as a task in Task Scheduler) Issue: Word fails to open document in method: $docxPath = gci "myfile.docx" $wordApp = New-Object -Com Word.Application $wordApp.Visible = $false $wordDoc = $wordApp.Documents.Open($docxPath.FullName) Solution: As CRAZY as it sounds, the solution is to CREATE AN EMPTY FOLDER called "Desktop" in either: C:\Windows\SysWOW64\config\systemprofile\Desktop or C:\Windows\System32\config\systemprofile\Desktop ...depending on whether you have 64-bit Windows. http://stackoverflow.com/questions/1177974/word-interop-not-working-in-a-scheduled-task

PowerShell | How to know if an Application is installed?

Let's find out if Microsoft Word is installed on the system: if ((dir REGISTRY::HKEY_CLASSES_ROOT\Word.Application) -ne $Null) { #do word installed stuff such as $myWord = New-Object -Com Word.Application $myWord.Visible = $true } Another option would be to catch the exception launched from the failed new-object Thanks to http://www.virtu-al.net/2008/08/07/powershell-is-microsoft-word-installed/