Just been puzzling out why I haven’t been getting any RSS feeds for a few days. Looks like when I hooked up my Office365 account to Outlook it took out all the RSS feeds. Fun time to come putting them … Continue reading
Archive for Office 2013
Office365 ate me RSS feeds
Posted by: | July 3, 2013 | No Comment |How to give yourself an ulcer in one evening or why Word remains minimised on the Taskbar
Posted by: richardsiddaway | December 3, 2012 | 1 Comment |I have just spent an extremely frustrating 3 hours trying to figure out why Word 2013 remained minimised on the task bar of my Windows 8 machine. Everything else opened up correctly including other Office applications such as Excel and PowerPoint.
I checked on other machines and it wasn’t the document I was trying to open – later found it was all Word documents – even those coming from my Skydrive.
Tried repairing Office – didn’t work
Looked through the registry – nothing
Tried opening Word through PowerShell – still minimised. Looked through the Word object – nothing.
Tried Internet searches – best option is to maximise through Task Manager – didn’t work. Tried move and size options – nothing.
Just had a brain wave. Yesterday I had an external monitor attached. Switched that on and there is Word in all its glory. Dragged the Window back to my laptop screen and everything works properly now.
So the moral of the story is don’t shut down word on an external monitor unless you want to give yourself an ulcer!
This is a common scenario
$word = New-Object -ComObject "Word.application" $word.visible = $true $doc = $word.Documents.Add() $doc.Activate() $word.Selection.Font.Name = "Cambria" $word.Selection.Font.Size = "20" $word.Selection.TypeText("PowerShell") $word.Selection.TypeParagraph() $word.Selection.Font.Name = "Calibri" $word.Selection.Font.Size = "12" $word.Selection.TypeText("The best scripting language in the world!") $word.Selection.TypeParagraph() $file = "c:\scripts\office\test1.doc" $doc.SaveAs([REF]$file) $Word.Quit()
Create a new Word document – put some text into it and save it with a given file name. I’ve used it successfully to create server documentation.
Unfortunately with PowerShell v3 it fails with this message
Exception calling "SaveAs" with "1" argument(s): "This is not a valid file name.
Try one or more of the following:
* Check the path to make sure it was typed correctly.
* Select a file from the list of files and folders."
At line:17 char:1
+ $doc.SaveAs([REF]$file)
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : COMException
It appears not to like the [ref] but if you leave it out you get this
Argument: ‘1’ should be a System.Management.Automation.PSReference. Use [ref].
At line:18 char:1
+ $doc.SaveAs($file)
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : NonRefArgumentToRefParameterMsg
[ref] isn’t case sensitive.
The only way round it that I know of is to create a blank Word document to use as a template
Copy-Item -Path mydoc.doc -Destination testdoc.doc -Force $file = "C:\MyData\SkyDrive\Data\Scripts\Office-Word\testdoc.doc" $word = New-Object -ComObject "Word.application" $word.visible = $true $doc = $word.Documents.Open($file) $word.Selection.Font.Name = "Cambria" $word.Selection.Font.Size = "20" $word.Selection.TypeText("PowerShell") $word.Selection.TypeParagraph() $word.Selection.Font.Name = "Calibri" $word.Selection.Font.Size = "12" $word.Selection.TypeText("The best scripting language in the world!") $word.Selection.TypeParagraph() $doc.Save() $doc.Close() $Word.Quit()
Notice that you need to give the full path to the file. Use the Open method and add the text. You can then save, close and quit the application.
I’ve tested this using office 2010 & office 2013 on Windows 7 & 8
Unfortunately we are still left with the problem that we can’t save the Word document into different formats.
Office 2013, Windows and SkyDrive app revisited
Posted by: richardsiddaway | September 6, 2012 | No Comment |This is not a combination I would recommend based on the current preview. If the experience doesn’t get better before Office 2013 RTMs I won’t be upgrading. Every time I open a document I get a message that there is a problem with the document. Is there a problem? In reality no.
Trying to open a second Word document and your machine freezes for a while.
I have lost work because of the interaction between Word’s attempts to communicate with SkyDrive and the Skydrive app.
I’ll persevere a bit more but as I don’t have anything like the problems with Office 2010 I may just revert
Office 2013 has the assumption that your SkyDrive is your primary storage area.
Live Essentials supplies an app that allows you to synchronise your PCs with your SkyDrive – it replaces Live Mesh.
I liked Live Mesh as I could perform peer to peer synchronisation at the folder level.
The new SkyDrive synchronisation only allows a single top level folder and you have to sync through SkyDrive
The interaction between Office 2013 and SkyDrive is not perfect. Office 2013 appears not to understand the SkyDrive and attempts its own synchronisation which doesn’t always work. You are then left with the option to discard your changes or save to another location.
The misunderstandings between SkyDrive and Office 2013 can lead to lost work – save often!
I haven’t seen as many issues between SkyDrive and Office 2013
This needs to be ironed out before Office 2013 RTMs ideally with a simple option to switch off Office 2013s direct interaction with SkyDrive
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS