Error Messages

What does the error Expression too long or too complex when generating the ePaper from WebOffice?</%WEB%>

In the desktop, the ePaper is generated without any problems. When calling the ePaper template from WebOffice, an error code appears in the log file indicating the following error:

Source:SynerGIS.ePaper.Shared.ArcGIS

Message:Failed to create ePaper: error CS1647: An expression is too long or too complex to compile near "Reports.Report.InitializeComponent()".

....

 

The error Expression too long or too complex indicates that the ePaper template is too large and cannot be compiled. The .Net Framework has limitations and throws this error when compiling. This often happens when very large images are inserted directly into the ePaper template.

Large images should not be inserted directly into the ePaper template. The GeoOffice ePaper designer offers the following alternatives besides the possibility to embed images directly into the template:

load from path

load from URL link

load from database

The advantage of these three alternatives is that the image is not loaded as a string in the template, but is loaded at runtime. This speeds up ePaper generation.