Telerik Forums
Reporting Forum
6 answers
329 views

Hello,

I searched the forums but was unable to find the issues that are similar to mine.  Recently  we updated to a newer version of Telerik Reporting(12.2.18.1017).  Either way when loading one of our old reports into the viewer or first loading it within the design which updates it to the new trdx model and saving. Then loading in the HTML 5 viewer. There seems to be a bug with HTML 5 Viewer when using parameters that are AllowNull and MultiValue together. In my case the lists are bound to a data source.  Upon clicking an option in one of my lists.  An API call is triggered for "parameters".  Any list that where AllowNull and MultiValue by default will have a value of null. So if you look at the ajax call to parameters(via developer tools in Chrome) you will see the following in the JSON request object. 

MyList: [null]

It is correctly passing that over as an array.  However, because null is the value selected .  This causes an error on the response such as

InnerException":{"Message":"An error has occurred.","ExceptionMessage":"No corresponding available value for value , parameter MyList","ExceptionType":"System.Exception","StackTrace":"   at Telerik.Reporting.Processing.Parameter.GetSingleLabel(Object value)\r\n   at Telerik.Reporting.Processing.Parameter.get_Label()\r\n   at GetLabel(Object )\r\n   at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)"}}}

However, if before I click on a value in my first list that causes the call to the API.  If I choose a value within the AllowNull/MultiValue list and unselect it again.  This time when I click on the first list that triggers the API call the parameter is omitted from the JSON which basically means nothing is selected and there is no exception.  I tried many solutions without luck.  I tried using jQuery to find the elements after load and trigger click on all first elements twice to select/unselect them but this does not work. Triggering click does nothing.  Is there anyway via the report viewer data object($('#report-viewer').data("telerik_ReportViewer")) to force these lists to clear their values so that [null] is not passed?  This did not happen in our old version(~2016) in the WinForms viewer.  There the list would show as a disabled drop down with a checkbox to the right of it named "Null" that was checked.

 

 

Todor
Telerik team
 answered on 11 Dec 2018
1 answer
451 views

In the report designer, I have an HtmlTextBox

In the textbox, I have an ordered list.

I need to change the numbering of the list to start at a value other than 1.
Looking on line, this can be done either by setting the "start" attribute on the OL tag, or the "value" attribute on the LI tag.

    <ol start="10">

    <li value="10">

I've tried both of those, but it doesn't work. It shows my new starting number in the HTML Value designer, but when I click OK and go back to the report designer, it still starts at 1.

Silviya
Telerik team
 answered on 11 Dec 2018
1 answer
352 views

     Hi

 

I have recently upgraded to the new version of telerik 2018 R3. Now the parameterarea is not visible anymore. 

1. I have reports with parameters visible

2. I added .ParametersAreaVisible(true) to the reportviewer just to be sure

3. Locally is works fine

4. When i look at the reportviewer where it doesn't work the button in the toolbar is disabled.

5. When i try to manually toggle the parameterarea it does nothing.

 

Any idea on how to fix this?

 

Thanks

Ronald

 

Silviya
Telerik team
 answered on 10 Dec 2018
2 answers
460 views

I am currently experiencing the missing toolbox in Visual Studio 2017 Professional.

I have followed the instructions, pinned to to top of the reporting forum, found here: https://www.telerik.com/forums/missing-telerik-menu-in-vs2017.

I have

(1) Closed all visual studio instances

(2) Downloaded the Duplicate Extension finder

(3) Opened the command prompt as Admin

(4) Ran the Duplicate Extension Finder tool with the -delete option

(5) Started Visual Studio 2017 again, as Admin

(6) Opened the Tools-> Extensions and Updates

(7) Disables all Telerik and Kendo extension entries

(8) Restarted Visual Studio 2017 as Admin

(9) Opened the Tools->Extensions and Updates

(10) Enabled all Telerik and Kendo extension entries

(11) Exited and restarted Visual Studio 2017.

And the problem still exists. The toolbox is not present when I open the report page.

I have since uninstalled the Reporting component using the Tools -> Extensions and Updates, and also used the Progress Control Panel to uninstall the Telerik Reporting component, demos and Visual Studio 2015 and 2017 extensions, and reinstalled them. I have run theDuplicate Extension Finder to remove and duplicate extensions (there weren't any this time around.)

But still...nothing. It still isn't showing.

I can see the ReportingToolbox.12.2.18.1129.pkgdef file under C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Telerik

I have attached an image from that file. The file references the D drive as that is where I have Telerik Reporting installed (corporate environment, no space on C). The file Telerik.Reporting.dll does exist in that location.

Is there something I can do to manually force the install of the Telerik Reporting toolbox?

 

 

 

Nikolay Mishev
Telerik team
 answered on 10 Dec 2018
3 answers
736 views
Only on MS Edge, the file name and the extension is changing. When I try to download report as .docx, extension is changing to .txt and name is base64 like, =_utf-8_B_dGVzdC5kb2N4_=.txt

when I decode base64 to string is test.docx.

Is there any idea, how to fix this?

Thanks in advance!
Silviya
Telerik team
 answered on 10 Dec 2018
1 answer
1.5K+ views

We are using latest Web Service Data Source  with Bearer Authentication, and are able to get the API token on each login request and even setup the correct  TokenPath field with valid regular expression (?:"access_token":")(.*?)(?:"), but we are not able to access token value in subsequent API data request. As per our Web API requirement we have to pass the bearer token as a Authorization header in every API data request.

What is the way to retrieve run-time token value and pass this to Authorization header of each API data request?

Todor
Telerik team
 answered on 10 Dec 2018
1 answer
183 views

Hello,

we are using Telerik Report Designer v 10.1.16.615 and we created a report where Avaliable Parameters (P1) are  from SQL Querry where is the input another Parameter (P2). But what we need is to generate this report for each of this Avaliable values Separately as Default.
So I choose the P1 to not be a Multiple-valued (so for every Parameter its generated separately) but now we need to use EACH of the avaliable parameter to be Default so the Report will generate One report for Each of the avaliable value.

I tried to use fuction =AllValues  but this function could not be called. Is there any other option so be able to do this ?
Thanks

Todor
Telerik team
 answered on 10 Dec 2018
4 answers
2.7K+ views
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.PathHelper.GetFullPathName()
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at System.Windows.Forms.IntSecurity.UnsafeGetFullPath(String fileName)
   at System.Windows.Forms.IntSecurity.DemandFileIO(FileIOPermissionAccess access, String fileName)
   at System.Windows.Forms.FileDialog.get_FileName()
   at System.Windows.Forms.FileDialog.OnBeforeVistaDialog(IFileDialog dialog)
   at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)
   at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
   at Fiddler.frmViewer.actSaveSessionArchive(IWin32Window wndOwner, Session[] arrSessions, String sSuggestedFilename) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Viewer.cs:line 6393
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItem.MenuItemData.Execute()
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Fiddler.frmViewer.WndProc(Message& m) in C:\JenkinsHome\jobs\FiddlerReleaseBuild\workspace\Fiddler2\Viewer.cs:line 12337
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Fiddler
    Assembly Version: 5.0.20182.28034
    Win32 Version: 5.0.20182.28034
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Fiddler.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Xceed.Zip.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Xceed.Zip.v5.4.DLL
----------------------------------------
Xceed.Compression.Formats.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Xceed.Compression.Formats.v5.4.DLL
----------------------------------------
Xceed.FileSystem.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Xceed.FileSystem.v5.4.DLL
----------------------------------------
Xceed.Compression.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Xceed.Compression.v5.4.DLL
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Fiddler.AtCacheInspectors
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Inspectors/Fiddler.AtCacheInspectors.dll
----------------------------------------
Standard
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Inspectors/Standard.DLL
----------------------------------------
SyntaxView
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Inspectors/SyntaxView.dll
----------------------------------------
FiddlerOrchestra.Addon
    Assembly Version: 1.0.20182.28033
    Win32 Version: 1.0.20182.28033
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Addon.dll
----------------------------------------
FiddlerOrchestra.Connection
    Assembly Version: 1.0.20182.28033
    Win32 Version: 1.0.20182.28033
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Connection.dll
----------------------------------------
netstandard
    Assembly Version: 2.0.0.0
    Win32 Version: 4.6.25908.2
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/netstandard.DLL
----------------------------------------
FiddlerOrchestra.Protocol
    Assembly Version: 1.0.20182.28033
    Win32 Version: 1.0.20182.28033
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Protocol.dll
----------------------------------------
FiddlerOrchestra.Utilities
    Assembly Version: 1.0.20182.28033
    Win32 Version: 1.0.20182.28033
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Utilities.dll
----------------------------------------
RulesTab2
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/RulesTab2.dll
----------------------------------------
SimpleFilter
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/SimpleFilter.dll
----------------------------------------
Timeline
    Assembly Version: 2.6.0.3
    Win32 Version: 2.6.0.3
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Scripts/Timeline.dll
----------------------------------------
Microsoft.JScript
    Assembly Version: 10.0.0.0
    Win32 Version: 14.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
System.Windows
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Windows.dll
----------------------------------------
JScript Thunk Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 14.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
KesKUZuK
    Assembly Version: 0.0.0.0
    Win32 Version: 14.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2650.0 built by: NET471REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2661.0 built by: NET471REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 11.0.0.0
    Win32 Version: 11.0.2.21924
    CodeBase: file:///C:/Users/Pavel_Balinski1/AppData/Local/Programs/Fiddler/Newtonsoft.Json.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 06 Dec 2018
3 answers
1.0K+ views

Sorry for the long title.  I'm working on a program that will create a transaction ticket.  These tickets need to be saved to a server for auditing purposes in PDF format.  I also need to simultaneously send it to the printer in silent mode with a user defined amount of copies (I will pass this using C#).  In the past I used PdfSharp to create the PDF programmatically, I could then use Ghostscript.NET to send the PDF to the default printer silently with the amount of copies I wanted.  It works well but is tedious. It also requires more dependencies than I'm comfortable with but it's free and it worked at the time.

I'm hoping I can create the ticket template using the Telerik report designer. Somehow load this trdp file into memory using C# and populate some fields in that report with actual values. (I still have to look up how to add fields without a data source).  I don't want to use a data source if I can help it because the data comes from a few locations that I already have access to in memory so it would be much easier to just inject them at runtime.

Is this possible with Telerik? I apologize if this is a basic question but I couldn't find this in the documentation.

Silviya
Telerik team
 answered on 05 Dec 2018
7 answers
694 views
 I am using Visual Studio 2008 and Telerik Reporting Q3 2008 SP2.

The web page loads fine but when you page through the report, the webpage does a postback, which I was thinking it shouldn't do since the report is sitting in an updatepanel. Should it?

Thanks,
Christel

Here is the code, just like the article here says:
http://www.telerik.com/help/reporting/asp-net-report-viewer-ajax.html


<

 

body>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server" />

 

 

<div>

 

 

<asp:UpdatePanel ID="updatePanel1" runat="server" >

 

 

<ContentTemplate>

 

 

<telerik:ReportViewer ID="ReportViewer1" runat="server" Height="700px" Width="700px"

 

 

Report="RMSAnalyticsReports.rptIncidentDetail, RMSAnalyticsReports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">

 

 

</telerik:ReportViewer>

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

 

</div>

 

 

</form>

 

</

 

body>

 

Todor
Telerik team
 answered on 05 Dec 2018
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?