My Stupid,
I had two Dirs (DocToBlob and tempDir), when viewing I was pulling from the "tempdir", when editing I was in "DocToBlob"
thank you and sorry to waste your time
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
C# UWP using VS2022 Word version 2305
I create a word Doc using SyncFusion, (no issues), save it to a BLob (no issues)
Write a copy of the Doc to the "AppData......" dir --No issues
Open the Doc in the "AppData " dir using
await Windows.System.Launcher.LaunchFileAsync(file) -- no problem
I sign the doc and close it the edits are not reflected in the doc ( I did a simple edit -Save , the edit is not saved)
private async void SaveDocLocal()
{
string thFolder = Path.Combine(ApplicationData.Current.LocalFolder.Path, FileNames.DocToBlobDir);
var folder = StorageFolder.GetFolderFromPathAsync(thFolder).GetAwaiter().GetResult();
StorageFile file = folder.CreateFileAsync(fileName,
CreationCollisionOption.ReplaceExisting).GetAwaiter().GetResult();
var stream = file.OpenStreamForWriteAsync().GetAwaiter().GetResult();
examNewDoc.Save(stream, FormatType.Docx);
stream.Close();
DocsWriteToBlobModel dwM = new()
{
LocalPath = file.Path
};
dwM.MTime = File.GetLastAccessTime(dwM.LocalPath);
dwM.BlobPrefix = prefixBlobNameDoc;
SFiles.DocsToWriteToBlob.Add(dwM);
await Windows.System.Launcher.LaunchFileAsync(file);
}
My Stupid,
I had two Dirs (DocToBlob and tempDir), when viewing I was pulling from the "tempdir", when editing I was in "DocToBlob"
thank you and sorry to waste your time