Telerik Forums
Reporting Forum
2 answers
1.2K+ views
Hi,

I upgraded from .net  3.1 to .net 5.0 ..

When i start program locally everything works (rendering etc, i have result and base64 string of pdf)  but inside docker it is not working ..

Do you have any ideas ? I pasted dockerfile

#FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine  AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0  AS build
ARG APP_ENV=omtest1

#app run environment
ENV APP_ENV $APP_ENV

WORKDIR /src

COPY test/*.csproj test/
COPY telerik/*.csproj telerik/
#COPY WorkerService3/*.csproj WorkerService3/
RUN dotnet restore  test/test.csproj

# copy and build app and libraries
COPY  test/  test/
COPY  telerik/ telerik/
#COPY  WorkerService3/ WorkerService3/

WORKDIR /src/test
RUN dotnet build -c release

#app ports to be exposed
EXPOSE 5000
EXPOSE 2000

FROM build AS publish
RUN dotnet publish -r linux-x64 -o /app/publish

# final stage/image
#FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
FROM centos:7.5.1804
#FROM mcr.microsoft.com/dotnet/sdk:5.0
RUN 		yum install wget -y && \
	yum install -y epel-release && \
	rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm && \	
	yum install glibc-devel -y && \
        yum install -y libgdiplus-2.10-10.el7.x86_64 && \
        yum install libX11-devel -y && \
	yum install dotnet-sdk-5.0 -y && \	
        rm -rf /var/cache/yum 
WORKDIR /app/telerik
EXPOSE 2000
COPY --from=publish /app/publish .

ENV ASPNETCORE_URLS http://*:2000
RUN cd /app/telerik &&  \
    cp te36013t_0.ttf TeleNeo-Regular.otf TeleNeo-Bold.otf TeleGroteskNor_0.ttf te36016t_0.ttf ConnectCode39_0.ttf /usr/share/fonts/
CMD dotnet test.dll --environment development


Bob
Top achievements
Rank 1
Iron
 answered on 08 Mar 2022
0 answers
369 views

Hi Friends,

 I am unable to render the  Telerik Report in the .net core App.

          ReportSource report = new InvoiceTest(); //calling from the dll
                    report.Parameters.Add("id", 1);
                    report.Parameters.Add("UserId", invoice.userId);
                
                    RenderingResult result  = reportProcessor.RenderReport("PDF", report,null);

                    if (!result.HasErrors)
                    {
                        string fileName = result.DocumentName + "." + result.Extension;
                        string path = System.IO.Path.GetTempPath();
                        string filePath = System.IO.Path.Combine(path, fileName);

                        using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
                        {
                            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                        }
                    }

My error message like :

InnerException = {"Format of the initialization string does not conform to specification starting at index 0."}

your help on this would be greatly appreciated

 

 

 

 

 

 

1 answer
319 views

Hi,

 

I am using Standalone Telerik Report Designer and trying to input a data into text box highlighted with red square (refer the attachment). I was inserting the textbox directly (look blue arrow) without inserting a table first as pageHeaderSection cannot be inserted with table. However, I found that No data source shown in the data explorer. Can someone guide me on how to input data into the textbox directly without inserting table first?

 

Thank you.

4 answers
2.5K+ views
Hi
I creating a simple List report. When I tries to add parameter and fill it from data source I am getting this exception
missing or invalid parameter value. please input valid data for all parameters 

Can any one help please..


Thanks
Magnus
Top achievements
Rank 1
Iron
 answered on 01 Mar 2022
1 answer
217 views

Hello,

 

I want to assign the values of these parameters from session variables when I load the page with report.

I used session and couldn't load the report.

 

Thanks for your help!

Todor
Telerik team
 answered on 28 Feb 2022
1 answer
104 views

I have a Table of Contents control in my telerik report, which works fine in preview mode and when exported to PDF, but when i export as a word document, each TOC link directs me to the top of the page. 

Is there a solution for this?

Todor
Telerik team
 answered on 28 Feb 2022
1 answer
366 views

Hello;

First I wrote my SQL query. As you can see in picture 1 my SQL query is working. I'm designing with Crosswizard. You can see it in Picture 2. Then I press the Preview button, the fault in picture 3 occurs. However, you can see in picture 1 that my SQL query is running. So what is the solution for this error?

Yana
Telerik team
 answered on 25 Feb 2022
0 answers
238 views

I have the requirement for setting a vector based picture (svg) as page background on every page in a report.

I tried setting the graphic as page watermark, but rendering the report as PDF the graphic is rasterized.

Is there another way of setting a vector graphic as page background and when rendering the report as PDF it stays vectorized ?

  
Manuel
Top achievements
Rank 1
 asked on 25 Feb 2022
0 answers
339 views

Hello,

I am new to Telerik, and am having trouble opening the x86 Report Designer.  I get this message:

Fatal error in workbench.  Now closing... An error has occurred while loading the ReportDesigner's Workbench.

Is there a log file somewhere that can get me more details on this?  What could be causing this issue?

Charlie
Top achievements
Rank 1
 asked on 24 Feb 2022
0 answers
172 views

My Blazor application uses an API for all its data and reporting etc

In my _Host.cshtml I have the following line

@* For Reports service hosted in another application / Report Server use absolute URI: *@
<script src="https://localpc/localapi/api/reports/resources/js/telerikReportViewer"></script>

and the report views OK.

When this goes into production, the localpc/localapi will change, the API will be hosted on the customers server

So, without change my code and re-compiling can I make this variable / configurable?

Thanks

Andrew
Top achievements
Rank 1
Iron
 asked on 24 Feb 2022
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?