I have an application written in C# WPF, and saving a generated Word document. Through the RemoteApp settings, I've set to show the local user's logical drives, but they don't have letters next to them. They show up as C on myHostname
, D on myHostname
, etc.
When I open up a SaveFileDialog
object, it shows Local Disk (C:)
, C on myHostname
, and D on myHostname
in the left-hand pane.
How do I set the filename, if there's no corresponding letter?
string filename = @"C:\myDirectory\myFile.docx";
using(WordprocessingDocument myDoc =
WordprocessingDocument.Create(filename,
WordprocessingDocumentType.Document)) {}