Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Error(Open): This command is not available because no document is open
Started by csThom at 10-19-2010 11:16 AM. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  10-19-2010, 11:16 AM
csThom is not online. Last active: 10/28/2010 12:12:31 AM csThom

Top 50 Posts
Joined on 10-20-2010
Posts 4
Error(Open): This command is not available because no document is open
Reply Quote
The Word2ChmConverter works fine when running using the UI or when using a batch file (double click on the batch file). However, when we try to run the exact same batch file on the same machine, ... but using the Task Scheduler (on a Windows 7 Enterprise machine), we keep receiving the following error (I'm including the result of the log):

[19/10/2010 20:00:20] ============================================================
[19/10/2010 20:00:20] Application Begin
[19/10/2010 20:00:20] ============================================================
[19/10/2010 20:00:20] EXE: C:\Builds\doc\WordCHM\Word-2-CHM.exe
[19/10/2010 20:00:20] Current Path: C:\Builds\doc\WordCHM
[19/10/2010 20:00:20] File: c:\Builds\Doc\word\Components.docx
[19/10/2010 20:00:22] Open(0): c:\Builds\Doc\word\Components.docx
[19/10/2010 20:00:22] Opened(0)!
[19/10/2010 20:00:22] Error(Open): This command is not available because no document is open
[19/10/2010 20:00:40] Error: E,-EXP:W14.0.5123,,W1@5,F|Ope,Word2Xml2.DoWord2Html,This command is not available because no document is open@WordUtils0.EmbedLinkedImages
[19/10/2010 20:00:41] ============================================================
[19/10/2010 20:00:41] Application End
[19/10/2010 20:00:41] ============================================================


Tried everything ... tx for your help!

this is the command what's inside our cmd file:

Word-2-CHM.exe /pFile="c:\Builds\Doc\word\Components.docx" /pOutPath="c:\Builds\Doc\Output" /pOverwrite=true /pAuto=True /pQuiet=true /pDebug=true

(remember: when just double-cliking the cmd file, everything works fine and the chm is generated correctly)
   Report 
  10-20-2010, 6:24 AM
David is not online. Last active: 3/11/2012 2:40:55 PM David

Top 10 Posts
Joined on 01-26-2008
Posts 195
Re: Error(Open): This command is not available because no document is open
Reply Quote
Please create a “.debug.nuva” file which the file name append “.debug.nuva” to the “.word2chm” and copy the debug script to it.

In your system, it is:
c:\Builds\Doc\word\Components.docx.debug.nuva
The debug script:
<.
App.Log.LogDebug('Debug script for Open failed.')
App.Log.LogDebug('Exists(%s): %s'.Format(System.File.Exists(fileName), fileName))
Word.Quit(0)
System.File.Execute(fileName)
System.Runtime.Delay(1000 * 60)
Word = System.Win32Ole.Get('Word.Application')
App.Log.LogDebug('Word.Documents.Add: ' ~ Word.Documents.Count)
.>

Please try again and let us know the result, thanks.
   Report 
  10-20-2010, 1:48 PM
csThom is not online. Last active: 10/28/2010 12:12:31 AM csThom

Top 50 Posts
Joined on 10-20-2010
Posts 4
Re: Error(Open): This command is not available because no document is open
Reply Quote
I've created the ".debug.nuva" file ... ran the scheduled task again (it took quite some time longer) ... and this is the result of the log file now:

[20/10/2010 22:42:52] ============================================================
[20/10/2010 22:42:52] Application Begin
[20/10/2010 22:42:52] ============================================================
[20/10/2010 22:42:52] EXE: C:\Builds\doc\WordCHM\Word-2-CHM.exe
[20/10/2010 22:42:52] Current Path: C:\Builds\doc\WordCHM
[20/10/2010 22:42:52] File: c:\Builds\Doc\word\Components.docx
[20/10/2010 22:42:55] Open(0): c:\Builds\Doc\word\Components.docx
[20/10/2010 22:42:55] Opened(0)!
[20/10/2010 22:42:55] Error(Open): This command is not available because no document is open
[20/10/2010 22:43:05] Debug script for Open failed.
[20/10/2010 22:43:05] Exists(True): c:\Builds\Doc\word\Components.docx
[20/10/2010 22:44:47] Word.Documents.Add: 1
[20/10/2010 22:45:15] ============================================================
[20/10/2010 22:45:15] Application End
[20/10/2010 22:45:16] ============================================================

However ... now the chm file is successfully created in the end!!
   Report 
  10-24-2010, 8:02 PM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Error(Open): This command is not available because no document is open
Reply Quote
The issue has been fixed. Please install the last version.

http://www.macrobject.com/en/word-2-chm/download.htm

Regards,
Peter
   Report 
  10-25-2010, 11:53 PM
csThom is not online. Last active: 10/28/2010 12:12:31 AM csThom

Top 50 Posts
Joined on 10-20-2010
Posts 4
Re: Error(Open): This command is not available because no document is open
Reply Quote
Hi,

I installed the new version, however I still have the exact same error. With the debug.nuva files it still works.
   Report 
  10-26-2010, 7:01 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Error(Open): This command is not available because no document is open
Reply Quote
If you are using Windows x64 system, please try to create the following folder manually:
  C:\Windows\SysWOW64\config\systemprofile\Desktop

If you are using Windows x86, create this folder:
  C:\Windows\System32\config\systemprofile\Desktop

Please let us know if this can solve the problem, thanks.

BTW: The scheduled task should be set to run under administrator privilege.

Regards,
Peter
   Report 
  10-27-2010, 9:15 AM
csThom is not online. Last active: 10/28/2010 12:12:31 AM csThom

Top 50 Posts
Joined on 10-20-2010
Posts 4
Re: Error(Open): This command is not available because no document is open
Reply Quote
I'm using 64bit system, the folder C:\Windows\SysWOW64\config\systemprofile\Desktop already exists on my system (and user has full access rights).

The scheduled task is also set to run under administrator priviliges.

with the .debug.nuva files it works, without it does not.
   Report 
Post
Macrobject Comm... » Help Authoring ... » Word-2-CHM Conv... » Error(Open): This command is not available because no document is open

Powered by Community Server, by Telligent Systems