Telerik Forums
Reporting Forum
0 answers
79 views

I am looking for advise as to how to capture if a report was actually printed?

This would then be stored in a SQL database as a true/false.

Which event should I be using? Has anyone done this or have sample code?

Brian
Top achievements
Rank 1
 asked on 03 Nov 2017
0 answers
59 views

I want to display a table with width of details section. I am generating this table from code. It looks like this:

<Table DataSourceName="EquipmentListSource" Width="18.9997994280509cm" Height="1.5cm" Left="0.00010012308478036cm" Top="0.299999848604206cm" Anchoring="Left, Right" Name="table1" StyleName="Normal.TableNormal">
  <Body>
    <Cells>
      <TableCell RowIndex="0" ColumnIndex="0" RowSpan="1" ColumnSpan="1">
        <ReportItem>
          <TextBox Width="2.57666584246297cm" Height="0.499999970197678cm" Left="0cm" Top="0cm" Value="= Equipment.Name" Format="null" CanGrow="True" CanShrink="True" Name="textBox1" StyleName="Normal.TableBody" />
        </ReportItem>
      </TableCell>
      <TableCell RowIndex="0" ColumnIndex="1" RowSpan="1" ColumnSpan="1">
        <ReportItem>
          <TextBox Width="1.01970437696535cm" Height="0.499999970197678cm" Left="0cm" Top="0cm" Value="= Equipment.InventoryNumber" Format="null" CanGrow="True" CanShrink="True" Name="textBox2" StyleName="Normal.TableBody" />
        </ReportItem>
      </TableCell>
    </Cells>
    <Columns>
      <Column Width="2.57666555934389cm" />
      <Column Width="1.01970430618558cm" />
    </Columns>
    <Rows>
      <Row Height="0.499999970197678cm" />
    </Rows>
  </Body>
  <Corner />
  <RowGroups>
    <TableGroup Name="Detail">
      <Groupings>
        <Grouping />
      </Groupings>
    </TableGroup>
  </RowGroups>
  <ColumnGroups>
    <TableGroup>
      <ReportItem>
        <TextBox Width="2.57666584246297cm" Height="0.999999940395355cm" Left="0cm" Top="0cm" Value="Nazwa" Name="textBox12" StyleName="Normal.TableHeader" />
      </ReportItem>
    </TableGroup>
    <TableGroup>
      <ReportItem>
        <TextBox Width="1.01970437696535cm" Height="0.999999940395355cm" Left="0cm" Top="0cm" Value="Nr inw." Name="textBox13" StyleName="Normal.TableHeader" />
      </ReportItem>
    </TableGroup>
  </ColumnGroups>
</Table>

 

My real table has 13 columns and their initial width is computed based on initial table width.

When I generate my report as "Portait" table fills all available width. 

When I change page settings to "Landscape" cell width grows to accommodate content and table fills all available width.

But when I change page settings back to "Portait" then cell contents is not shrunk back and my table spans to three pages.

What can I do be able to switch from Portait to Landscape and back without this effect?

 

Lukasz
Top achievements
Rank 1
 asked on 03 Nov 2017
5 answers
289 views

Hi. I need to add some functionality to my application which needs to be triggered on print or export of a report(created in the standalone report designer). I've seen a page in the Telerik documentation stating the following:

"Additionally events can't be used with Standalone Report Designer report documents, because the custom code from events is not serialized in reports."

I've also noticed this behaviour through my own testing.

 

I'm wondering if there is any way that I can capture when a report is printed or exported from the Telerik Winforms Report Viewer without having to reimplement Windows print/export dialogs.

 

Thanks.

James
Top achievements
Rank 1
 answered on 03 Nov 2017
0 answers
388 views

Hi all
I am using the Report Designer for the first time. I have created a report and it is not allowing me to fetch the data from server. I am using local database credentials to get the data and display in the report and it is working fine. I want this report to work with the application other developers have created because the designer in the Visual Studio does not provide the options and is not that well organized as Report Designer is. 
Is this all possible or I am just wasting my time over this issue ?

Thank you 

Muhammad
Top achievements
Rank 1
 asked on 03 Nov 2017
1 answer
93 views

Hi,
I can`t achieve display the data from an Complex Object with a property List of subObjects, in the way I would like to Display. This Way is Grouping  the Field ‘Question’ by  â€˜QuestionGroup’

Complex Object:
    public class QuestionnaireReportData
    {
        public string Name { get; set; }
        public string Description { get; set; }
        public string DeviceID { get; set; }
        public string SerialNumber { get; set; }
        public string Location { get; set; }
        public string City { get; set; }
        public DateTime Date { get; set; }
        public string Client { get; set; }
        public string Modelo { get; set; }
        public string Manufacturer { get; set; }
        public IEnumerable<QuestionResponseReportData> QuestionResponses { get; set;      }
    }

    public class QuestionResponseReportData
    {
        public string Question { get; set; }
        public string Answer { get; set; }
        public AnswerDataType AnswerDataType { get; set; }
        public string QuestionGroup { get; set; }
    }
I achieve to binding the sourceData of Table, List,etc to the List Property IEnumerable<QuestionResponseReportData>) and show Correct Data, But I don’t achieve to Grouping correctly by the Field QuestionGroup as I want.

This is what I would like to display (Good display attached image)

This is what I display actually (bad display attached image)

What I’m doing wrong? Thanks in advance!
Best Regards,

Raul
Top achievements
Rank 1
 answered on 03 Nov 2017
0 answers
236 views

Hello,

in our reports we always use alternating row colors in tables, this works great.

Now we created a report where we have Row Groups in a table. If we use the ConditionalFormatting like everytime else, we get a table with these colors:

 

ID | Text         | Color
 1  | test 1.1    | gray
     | test 1.2    | white
     | test 1.3    | gray
 2  | test 2.1    | white
     | test 2.2    | gray
     | test 2.3    | white

 

But what we need is this:

ID | Text         | (Color)
 1  | test 1.1    | gray
     | test 1.2    | gray
     | test 1.3    | gray
 2  | test 2.1    | white
     | test 2.2    | white
     | test 2.3    | white

 

How can we realise this?

Thank you!

 

Regards
Diego

Diego
Top achievements
Rank 1
 asked on 03 Nov 2017
9 answers
428 views

Hello,

I am using Telerik Reporting with WPF Windows Application to show a Pie Chart like the one in the image I have attached. I am not able to get the DataPointLabelConnector, I mean the line that connects the label with its part of the pie chart.

 

These are the properties I set for the Serie:

  • DataPointLabelAlignment: OutsideColumn.
  • DataPointLabelOffset: 30px.
  • DataPointLabelConnectorStyle has its Visible property set to true.

 

Do you know what is happening? 

 

Many thanks.

J
Top achievements
Rank 1
 answered on 02 Nov 2017
2 answers
159 views
I have the following dataset:

organisation client pos desc total
a 1 1 a 10
a 1 2 b 11
a 1 3 c 12
a 2 1 d 20
a 2 2 e 21
a 2 3 f 22
a 3 1 g 30
a 3 2 h 31
a 3 3 i 32
b 1 1 j 40
b 1 2 k 41
b 1 3 l 42

An organisation can contain one client, but a second organisation has several clients.
The report is generated at the organisation level.

I need on this organisation report per client a table. See attached file for more information.

How do I create this table? Do i need a normal table with grouping? a cross table? or perhaps a sub-report?
I prefer to generate it completely in the designer, if possible!

thanks in advance!
Eric
Top achievements
Rank 1
 answered on 01 Nov 2017
7 answers
550 views
I am working on a report that is creating a table dynamically in the details section.  Everything is good up to 39 columns and then I get the following error.  This particular run of the report only has seven records so it doesn't seem like it would be too large.  It worked if I did not use a table but just put textboxes in the detail section but the excel download was too jumbled. 

Is there a limit to the number of columns in a table?  Is this something else?  Any help appreciated.

Access to the path 'C:\Documents and Settings\xxx\ASPNET\LOCALS~1\Temp\9a48e4f88d36442381c16e503333fcdc' is denied. 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at Telerik.Reporting.Cache.File.FileCache.EnsureDirectoryCreated()
   at Telerik.Reporting.Cache.File.FileCache.SetValue(String key, Byte[] value)
   at Telerik.Reporting.Cache.SmartCache.SetValue(String key, Byte[] value)
   at Telerik.ReportViewer.WebForms.StreamManager.StreamReady(RenderStream renderStream)
   at Telerik.ReportViewer.WebForms.RenderStream.Finish()
   at Telerik.Reporting.Html5Rendering.Writers.Page.WritePageEndDocument()
   at Telerik.Reporting.Html5Rendering.Writers.Page.WriteEndPage()
   at Telerik.Reporting.Html5Rendering.Writers.Report.WriteEndPage()
   at Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.EndPage()
   at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()
   at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, Report report)
   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 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext)
   at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
   at Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride()
   at Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager)
   at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Jans
Top achievements
Rank 1
 answered on 01 Nov 2017
6 answers
240 views
We would like to integrate the designer into our application

What we would like is to be able to wrap the exe so that we can pass in the template file we want to edit and then save the file back to our database

Is this at all possible?

Alex
Top achievements
Rank 1
 answered on 01 Nov 2017
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?