Comments (11)
continues with problem FastReport.Utils.CompilerException: (153,103): Error CS0117: Please, don't use the method 'NewLine'
Hello! It's ScriptSecurity: https://www.fast-report.com/en/blog/360/show/
Disable FastReport.Utils.Config.EnableScriptSecurity
property
from fastreport.
i disabled FastReport.Utils.Config.EnableScriptSecurity = false;
but, the error persists
FastReport.Utils.CompilerException: (153,103): Error CS0117: Please, don't use the method 'NewLine'
from fastreport.
What is the line feed character in your system? FR uses the default LF as a line feed.
from fastreport.
@fediachov @Detrav Wouldn't text.Replace("<br>", "\r\n")
be considered with text.Replace("<br>", Environment.NewLine)
to solve the issue on all platform?
from fastreport.
No, it isn't the problem. Our text engine is built on the \n
symbol as line separator, it is made for compatibility of reports from different operating systems.
For example, you create a report on the windows operating system or MacOS or Android or any other. The text is converted and stored in a universal form with a \n
separator, it will allow to prepare a report on any operating system.
This method converts <br/>
tags into our internal separator. After that, our engine breaks the text in rows.
// This line text is replaced
text = text.Replace("<br>", "\r\n");
// This line text is splitted
string[] lines = text.Split(new char[] { '\n' });
from fastreport.
What is the line feed character in your system? FR uses the default LF as a line feed.
Windows uses CR+LF, Linux only LF
from fastreport.
No, it isn't the problem. Our text engine is built on the
\n
symbol as line separator, it is made for compatibility of reports from different operating systems.For example, you create a report on the windows operating system or MacOS or Android or any other. The text is converted and stored in a universal form with a
\n
separator, it will allow to prepare a report on any operating system.This method converts
<br/>
tags into our internal separator. After that, our engine breaks the text in rows.// This line text is replaced text = text.Replace("<br>", "\r\n"); // This line text is splitted string[] lines = text.Split(new char[] { '\n' });
The problem is not the report itself but with strings build dynamically.
For example, I have a class's property getter that returns an address. The resulting string is build using StringBuilder.AppendLine("Street 1").AppendLine("City 1") that appends CR+LF on Windows and only LF on Linux. The report is exported correctly on Windows, but the same report on Linux doesn't have line breaks.
from fastreport.
That is why the internal separator from the FR does not go outside.
from fastreport.
Iām closing this issue because it has been inactive for a few weeks. This probably means that it is not reproducible or it has been fixed in a newer version.
Please reopen if you still encounter this issue with the latest stable version.
Thank you!
from fastreport.
continues with problem FastReport.Utils.CompilerException: (153,103): Error CS0117: Please, don't use the method 'NewLine'
from fastreport.
i disabled FastReport.Utils.Config.EnableScriptSecurity = false;
but, the error persists
FastReport.Utils.CompilerException: (153,103): Error CS0117: Please, don't use the method 'NewLine'
Can you send your code?
from fastreport.
Related Issues (20)
- ITF14 Barcode border error when translate it. HOT 2
- Save and Print buttons not working HOT 3
- Rich Text Blob Issue
- position:absolute shouldn't be used for html email
- Digital Signature HOT 1
- Refresh button click in WebReports 500 index out of range issue occur
- Exception when try create a Postgres connection HOT 4
- Error CS0103: The name 'Produto' does not exist in the current context
- Adding/Editing/Testing Connection Error HOT 1
- Unable to add Nuget package FastReport.OpenSource to .NET 8 project HOT 2
- The Title property of PDFSimpleExport is not setting the title on the resulting PDF page as expected.
- Some Chinese characters in the ubuntu system are displayed incorrectly HOT 1
- Container em Linux RadHat - .Net 8 - One or more errors occurred. (The type initializer for 'FastReport.Report' threw an exception.) HOT 2
- Add new Datasource mysql in designer.exe HOT 1
- VisibleExpression on a Page is not working HOT 1
- transparent page have black lines
- TextObject Automatic line wrapping one more-character HOT 1
- Only authenticationclearpassword And authenticationMD5password are supported for now,received 10. when try to connect to postgres db
- FastReport.OpenSource
- Could not load file or assembly System.Threading.Tasks.Extensions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastreport.