Message 1 of 9
Spaces in filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to print with the following code:
With ThisDrawing sTxt = Replace("sTxt is Z:\A\B\Design\2017 Projects\Test Stage\2.dsd", "\", "/") .SetVariable "FILEDIA", 0 .Regen acActiveViewport .SendCommand "(command " & Chr(34) & "-PUBLISH" & Chr(34) & " " & Chr(34) & sTxt & Chr(34) & ")" & vbCr End With
but I am getting the following error in the text window:
Could not locate sheet list file. Enter name of sheet list <>: nil
I believe it has something to do with the spaces in the filename because if I change to this:
With ThisDrawing sTxt = Replace("sTxt is C:\2.dsd", "\", "/") .SetVariable "FILEDIA", 0 .Regen acActiveViewport .SendCommand "(command " & Chr(34) & "-PUBLISH" & Chr(34) & " " & Chr(34) & sTxt & Chr(34) & ")" & vbCr End With
everything works fine, so I know the DSD file is ok (not that the error indicates it is a problem with the DSD file anyway!!)
What can I do to fix,or prove, this issue?