Telerik Forums
Reporting Forum
1 answer
808 views

Hello.

I got a PictureBox that the URI is a call to an action method :

="https://mysite.com/Stocks/Dwnlod/" + CStr(Fields.PhysicalName)

 

I use ASP.NET MVC Core and my pictures are not in wwwroot.  They are under another directory of the project.

So I use a method to get the filestream of the file :

[Authorize]
public async Task<FileStreamResult> Dwnlod(string id)
{
    ...
    var memory = new MemoryStream();
    try
    {
        using (var stream = new FileStream(path, FileMode.Open))
        {
            await stream.CopyToAsync(memory);
        }
    }
    catch (Exception e)
    {
 
    }
    memory.Position = 0;
 
    return File(memory, GetContentType(path), Path.GetFileName(path));
}

 

As you can see my action method is decorated [Authorize] so it's impossible to get the stream from the report even if the user is connected and authenticated.  The call of URI from the report seem be anonyous.  So i got a error (of course everything works #1 when I remove the decoration Authorize).

 

Any suggestion to keep [Authorize]?  Can the report can provide some authenification when the URI is called?

 

Thank you all of you at Telerik.

 

 

Neli
Telerik team
 answered on 04 Sep 2019
5 answers
1.5K+ views
How can insert %subject There is shape with rounding, but need . With Strech on, corners are stretched too :( Thx.
Neli
Telerik team
 answered on 04 Sep 2019
8 answers
975 views
I am exporting a report in Excel format and I was curious if there is a way to lock a particular column in the spreadsheet so that it is not editable.
Todor
Telerik team
 answered on 04 Sep 2019
3 answers
274 views

Hi,
I have a Toggle Button on the header of the parent group (Group Name in example) which when I expand does not reflect on the toggle buttons of the child (BZ Liquor Eat In etc in the example). Same with the toggle button on Department and its sub group toggle buttons. I have attached screen shots for better understanding. 
They all work fine individually, just that when I expand / collapse all, the individual buttons need to change as well. Any help would be appreciated. Thank you

 

http://www.telerik.com/clientsfiles/ac9e5192-e0a2-4cb9-87f6-be0c9b958413_reportdesign.png?sfvrsn=0
http://www.telerik.com/clientsfiles/852ee669-1738-4c3c-aa01-16057fd7e2b0_department-collapsed.png?sfvrsn=0
http://www.telerik.com/clientsfiles/b2243263-adcf-4fba-9452-6e952d35879d_collapsedmode.png?sfvrsn=0
http://www.telerik.com/clientsfiles/b20e189a-93a4-4411-b67d-f53c91eefcb4_department-expanded.png?sfvrsn=0
http://www.telerik.com/clientsfiles/cacd6114-95d3-4969-bfe9-c833f3b6abc7_expandedmode.png?sfvrsn=0

Todor
Telerik team
 answered on 03 Sep 2019
8 answers
888 views
I'm currently looking for a reporting tool and I downloaded the trial version of Telerik Report. I'm currently trying to generate a report programmatically. I'm able to do everything needed so far but for some reason there is a large whitespace between my group header and detail section that I cannot seem to remove. I was hoping someone may have a sugestion.

Thanks,
Colleen
Top achievements
Rank 1
 answered on 03 Sep 2019
15 answers
1.9K+ views
When a user clicks on the "Export" button of the ReportViewer, he or she can choose to export the report to a PDF file because I made sure to reference the ImageRendering dll in my project.

How can I change the default filename to which the report will be exported?  I need to change this at run time, based on which report they have run and on which products.

Is there a way to set this?  Right now, it always exports to "Report.pdf" and that isn't going to work for this project.

I looked in the documentation, and in this forum, and have come up empty for setting the filename when the ReportViewer is being used (direct export to PDF is covered quite nicely here in the forum, however.)

Thanks!
Neli
Telerik team
 answered on 02 Sep 2019
6 answers
642 views

Hi. 

 

We use Html5 Report Viewer and set authentication token through it's property authenticationToken.

Everything works fine except that viewer generates a request without the token.

 

Here is the url:

http://localhost:59815/api/reports/clients/173901-cdb6/instances/173902-9976/documents/173902-d1da173902-1f2a/resources/expand.png/

 

And headers:

GET http://localhost:59815/api/reports/clients/173901-cdb6/instances/173902-9976/documents/173902-d1da173902-1f2a/resources/expand.png/ HTTP/1.1
Host: localhost:59815
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Accept: image/webp,image/*,*/*;q=0.8
Referer: http://localhost:59815/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4

Ivan Hristov
Telerik team
 answered on 02 Sep 2019
1 answer
196 views

I have sporadic small gaps between detail in my report (that appears as a horizontal line as the background is a diff color than the image in the panel)
its not on every line of detail, but about 1/2.
attached is my report design and a sample output of the detail section

I have tried fooling with anchoring, docking, making sure my report section is exactly the same height as the panel inside of it (the panel contains a non repeating image)

Thank you

-Colleen


Neli
Telerik team
 answered on 30 Aug 2019
12 answers
1.2K+ views

Hi, I have this section in my web.config file:

 

  <Telerik.Reporting>
    <privateFonts>
      <add fontFamily="Arial Narrow" path="~\Fonts\ARIALN.TTF" />
    </privateFonts>
  </Telerik.Reporting>

..and when I start the web application from VS2015 in debug mode, when the first report rendering starts, it throws and exception, and from it's description I can see that the report processing engine looks for fonts in:

C:\\Program Files (x86)\\IIS Express\\~\\Fonts\\ARIALN.TTF

I have also tried "path=Fonts\ARIALN.TTF" and it looks in C:\\Program Files (x86)\\IIS Express\\Fonts\\ARIALN.TTF

 

Please tell me how to setup my web.config file in order for fonts to be located in the "Fonts" sundirectory of my application?

Todor
Telerik team
 answered on 30 Aug 2019
1 answer
328 views

For the life of me, I cannot figure out how to make this work.    

Standalone Report Designer:

 

I have a dataset coming from an api.   The data is CRM sales funnel data.   

I need to display the sum of amount grouped by sales_stage (Prospecting, Bid, Negotiation, etc), and filtered by date range (ie. Q1, Q2, Current Month, Last month).   

 

How do I set up the groups for this to work?  

 

Todor
Telerik team
 answered on 29 Aug 2019
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?