FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

SVG report isn't working

Open MrVitaly opened this issue 7 years ago • 6 comments

Versions

  • Fast Report: Demos/FastReportCore.MVC.csproj fom the sources (as is) (master/Latest commit 664c4e9) Reports\SVG.frx

What happened

The following exception is occurring during opening Report Objects/SVG demo report:

An unhandled exception occurred while processing the request.
FileNotFoundException: Could not find file '...\FastReport\Demos\Core\FastReportCore.MVC\bin\Debug\netcoreapp2.0\Reports\SVG.frx'. 

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run project Demos/FastReportCore.MVC.csproj;
  2. Select Report Objects/SVG demo report;

Expected behavior

The report SVG.frx should be shown.

Screenshots

  • fastreportissue_3
  • fastreportissue_4

Logs

System.IO.FileNotFoundException: Could not find file 'H:\Master\Repository\FastReport\Demos\Core\FastReportCore.MVC\bin\Debug\netcoreapp2.0\Reports\SVG.frx'.
File name: 'H:\Master\Repository\FastReport\Demos\Core\FastReportCore.MVC\bin\Debug\netcoreapp2.0\Reports\SVG.frx'
   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at FastReport.Report.Load(String fileName) in H:\Master\Repository\FastReport\FastReport.Base\Report.cs:line 1790
   at FastReportCore.MVC.Controllers.HomeController.Index(Nullable`1 report) in H:\Master\Repository\FastReport\Demos\Core\FastReportCore.MVC\Controllers\HomeController.cs:line 119
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

MrVitaly avatar Nov 24 '18 08:11 MrVitaly

Hi,

Thanks for a detailed issue request. FastReport Open Source don't have the SVGObject, but you can use it in another edition https://github.com/FastReports/FastReport.Documentation/blob/master/COMPARISON.md

fediachov avatar Nov 26 '18 07:11 fediachov

@fediachov, thank you for the explanation. Would it be better to remove an appropriate link from the reports list in this case? Will you include this functionality into FastReport Open Source project if somebody implements it (proposes an appropriate PR)? And one more question: I see similar problems (different unhandled exceptions occurred while processing) with some other reports (Interactive Matrix, Interactive Matrix With Chart, Interactive Forms). Is it the same reason for this?

More details:

  • Interactive Matrix
An unhandled exception occurred while processing the request.
CompilerException: (22,32): Error CS0103: The name 'Color' does not exist in the current context
(22,22): Error CS0012: The type 'Color' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
(29,32): Error CS0103: The name 'Color' does not exist in the current context
(29,22): Error CS0012: The type 'Color' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing.Primitives, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
FastReport.Code.AssemblyDescriptor.InternalCompile() in AssemblyDescriptor.cs, line 454
  • Interactive Matrix With Chart
An unhandled exception occurred while processing the request.
ClassException: Can't find object MSChartObject
FastReport.Utils.FRReader.Read() in FRReader.cs, line 241
  • Interactive Forms
An unhandled exception occurred while processing the request.
FileNotFoundException: Could not find file '...\FastReport\Demos\Core\FastReportCore.MVC\bin\Debug\netcoreapp2.0\Reports\Interactive Forms.frx'.
System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)

MrVitaly avatar Nov 26 '18 20:11 MrVitaly

We will definitely clean up our examples. Thanks for your support!

fediachov avatar Nov 27 '18 11:11 fediachov

What about the following question?: Will you include this functionality into FastReport Open Source project if somebody implements it (proposes an appropriate PR)?

MrVitaly avatar Nov 27 '18 12:11 MrVitaly

We already have own SVGObject based on SVG.NET. We have plans to publish it in Open Source in near future.

fediachov avatar Nov 27 '18 12:11 fediachov

We already have own SVGObject based on SVG.NET. We have plans to publish it in Open Source in near future.

Is it possible to use SVGObject in FastReport Open Source? Please write the details.

agiletools avatar Mar 01 '20 16:03 agiletools