Telerik Forums
Reporting Forum
1 answer
905 views

Hi,

I have a problem when I  try to print report in controller. The thing is; it is working locally but when I deploy the project to iss I am getting error message says; "System.InvalidOperationException: No or invalid printer error on IIS server."


// Obtain the settings of the default printer
                System.Drawing.Printing.PrinterSettings printerSettings
                    = new System.Drawing.Printing.PrinterSettings();

                // The standard print controller comes with no UI
                System.Drawing.Printing.PrintController standardPrintController =
                    new System.Drawing.Printing.StandardPrintController();

                // Print the report using the custom print controller
                Telerik.Reporting.Processing.ReportProcessor reportProcessor
                    = new Telerik.Reporting.Processing.ReportProcessor();

                reportProcessor.PrintController = standardPrintController;

                    Telerik.Reporting.TypeReportSource typeReportSource =
                        new Telerik.Reporting.TypeReportSource();

                    //// reportName is the Assembly Qualified Name of the report
                    //typeReportSource.TypeName = reportName;

                // Create a new report source pointing to report definition
                var reportSource = new UriReportSource();
                reportSource.Uri = entity.ReportName;



                foreach (var i in entity.Parameters)
                {
                    reportSource.Parameters.Add(new Parameter(i.Key, i.Value));
                }


                    reportProcessor.PrintReport(reportSource, printerSettings);                    

                return null;

 

Please suggest,

Thanks

1 answer
237 views

Hi guys,

I have deleted the header row of a table by mistake and now the function with print on every page is not working obviously.
Is it possible to delcare a 'normal' row as the header? Or a function to add a new header row?
I cant find any functionality to this.
But it would be really much work to build the table new from scrap.

Also I think I will still have a problem. I have the following situation:
I have the situation where I need the GroupHeaders and GroupFooters on every page.
Not just the ColumnHeaders. I don't know if this is possible.

Greetings

Benedikt

Todor
Telerik team
 answered on 21 Dec 2021
1 answer
1.5K+ views
I want to bind for example cars to one table and houses to another table. In screenshot A, I am trying to bind a table column to an array of models in the cars object, but the telerik support designer doesn't allow me to see the models and select it. All is shows that its a system.Object. Am I doing something wrong? I am using a json data source like this (I am aware that the json is in single quotes, that's not a problem. I have using json data with double quotes and still the same problem):
JsonDataSource:
{
  'name': 'john',
  'age': 146,
  'cars': [{
    'model': 'Ford89',
    'price': 50
  },{
    'model': 'BMW',
    'price': 42
  }],
  'houses': [{
    'location': 'los angelos',
    'cost': 505
  },{
    'location': 'sunny town',
    'cost': 505
  }]
}
0 answers
560 views

Hai, I want to use Telerik embedded with Angular in project development. I already try following precisely steps below :

 

https://www.telerik.com/blogs/embedding-beautiful-reporting-angular-applications

 

However, it seems several error had popup when i try to run the angular. The error are as shown :

Build at: 2021-12-20T07:08:01.911Z - Hash: c9bbf7e71573f59f - Time: 6282ms

Error: src/app/app.component.html:11:10 - error TS2339: Property 'ready' does not exist on type 'AppComponent'.

11 [ready]="ready"
            ~~~~~

  src/app/app.component.ts:6:16
    6   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.


Error: src/app/app.component.html:12:25 - error TS2339: Property 'viewerToolTipOpening' does not exist on type 'AppComponent'.

12 [viewerToolTipOpening]="viewerToolTipOpening"
                           ~~~~~~~~~~~~~~~~~~~~

  src/app/app.component.ts:6:16
    6   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.




** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


× Failed to compile.

 

Can somebody help me? Thank you.

Azman
Top achievements
Rank 1
 asked on 20 Dec 2021
0 answers
164 views

Dear Telerik support team,  

Is Telerik using any Log4j as a logging tool? Please kindly confirm this to us. Thanks

 

Praj
Top achievements
Rank 1
 asked on 20 Dec 2021
1 answer
173 views

Hi,

My mentor wants me to set pre configured data sources on every report so the users who are manipulating it don't need to add the same data sources everytime.

Furthermore, I would need to disable the data sources buttons as well but I already found workarounds for it here. On the other hand I am wondering if there is a better solution since at the bottom of the post there is a text which says:

Note that experienced users can look through the raw HTML and find the hidden DIV tag. But until the Web Designer gets the added features of customizing the UI, this is the closest solution.

Thanks a lot in advance.

 

UPDATE: actual post title:

Add preconfigured data sources and hide data source buttons

sorry for inconvenience


Dimitar
Telerik team
 answered on 16 Dec 2021
1 answer
809 views
Hi,

I am using Telerik.Reporting library (15.2.21.1110) in Blazor Server application.
The report was created in standalone Report designer (.trdp).
I can display that report in the Blazor ReportViewer component. 
When running the web app on Windows I can export to PDF, DOCX via the ReportViewer and also without the REST service using Telerik.Reporting.Processing.ReportProcessor.RenderReport().


The problem occurs when building the application as Docker RedHat based image. 
In that case the DOCX works but the PDF fails in both scenarios (REST report service and ReportProcessor) throwing eventually System.OperationCanceledException.
Dockerfile instructs to use RedHat UBI8 base image and install GDI+ Win library replacement for Unix systems (glibc-devel, libicu, libX11-devel, libgdiplus).

Do you have any suggestions what could be wrong?



blazor.server.js:1 [2021-12-13T15:29:47.907Z] Error: System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException() in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs:line 368
   at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/ManualResetEventSlim.cs:line 550
   at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2979
   at System.Threading.Tasks.Task.InternalWaitCore(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2914
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2710
   at System.Threading.Tasks.Task.Wait(CancellationToken cancellationToken) in /builddir/build/BUILD/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/artifacts/source-build/self/src/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2648
   at Telerik.Reporting.Paging.PageCompositionBase.SeparateThreadOutputBehavior.Finish()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, LayoutElement root)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.<>c__DisplayClass46_0.<RenderReport>b__0(SingleStreamManager sm)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReportSafe(Func`2 renderCallback, String format, IRenderingContext renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo, CancellationToken cancellationToken)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
  
Jakub
Top achievements
Rank 1
Iron
 answered on 15 Dec 2021
0 answers
1.0K+ views

In the aftermath of the Log4J security breach, we need to be sure that all vulnerable components are patched.

I guess there are no Java components and hence not Log4J involved in any of Telerik's components, but can this please be confirmed?

Paeie
Top achievements
Rank 1
 asked on 14 Dec 2021
0 answers
176 views
I am facing the issue with parameterized report with PostgreSQL database in Angular .NET Core application.
I have configured everything as per the documentation. I tried lots to resolve this issue at my end but parameterized report not loading details when passing params from angular, If I used to designer preview it is fine. For testing purpose, I changed the database to SQL Server and same code and configuration works. I needs working solution for this with PostgreSQL database for parameterized reports. If anyone worked with 
parameterized report with PostgreSQL database in Angular .NET Core application. Please suggest solution for it. I am sharing my code configuration and report, please have a look.

Report designer:-

Report designer:



Parameter passing from angular:


Report viewer in angular:


My reporting controller in c#:





Please suggest any solution for it.



Thanks and Regards,

Parveen Kumar 

0 answers
127 views

In standalone designer, R3 2021.

I have a table being displayed as shown below.

How do I get the time cell for second row to be the same size as the treatment text?

The detail section and both cell height parameters are all the same

Taras
Top achievements
Rank 3
Iron
Iron
Veteran
 asked on 13 Dec 2021
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?