DocumentUri

Posted by: pharmasofttvs2net-ch on 10 September 2017, 10:58 am EST

  • Posted 10 September 2017, 10:58 am EST

    hello,

    If I create new ssxml, it creates in the xaml a DocumentUri path.
    But when I run the application, it can find the ssxm.
    Here is the DocumentUri generated : "/WpfApplication1;component/Spread Documents/spreadsheet1.ssxml"
    If I put the full Path of the ssxm file, it works.
    Could you help ?
    Thank you in advance.
  • Marked as Answer

    Replied 10 September 2017, 10:58 am EST

    Hello Pierre,

    You may try the following at your end and share your observations :


    documentUri = new Uri("pack://application:,,,/Spread Documents/spreadsheet1.ssxml");
    OR
    documentUri = new Uri("/" + new AssemblyName(Assembly.GetExecutingAssembly().FullName).Name +
    ";component/Spread Documents/spreadsheet1.ssxml", UriKind.Relative))


    Hope this helps.

    Regards,
    Reema
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels