This is a migrated thread and some comments may be shown as answers.

wpf diagram html export error

1 Answer 37 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 26 May 2014, 12:01 PM
Hi,

I get an error when I try to Export a RadDiagram.

Error in HTMLExportHelper Class:
private static string LoadStringFromFile(string path)
        {
            string javaScript = string.Empty;
 
            using (var stream = ExtensionUtilities.GetStream(path))
            {
                if (stream != null)
                {
                    using (var reader = new StreamReader(stream))
                    {
                        javaScript = reader.ReadToEnd();
                    }
                }
            }
 
            return javaScript;
        }

Var stream is allways null. How should string path looks like? for example "public const string JSFilePath = @"Common/ExportToHTML/JavaScript.js";" ist
wrong. The JavaScript.js file is Applicationpath + Common + ExportToHTML Folder.

Thanks
Best Regards
Rene

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 29 May 2014, 08:06 AM
Hi Rene,

I tried to reproduce the reported behavior on our side with our official release and it seems that the code works as expected. Could you please take a look at the attached project and let me know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or