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?
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?
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.
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
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,
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
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:
Do you know what is happening?
Many thanks.
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)