double leftPoint = 0;
double Y_FirstLine = 0.02;
double width = 1.25;
double height = 0.25;
Telerik.Reporting.TextBox textBox;
// Add ItemInfoId Box
textBox = new Telerik.Reporting.TextBox();
textBox.SetTextBoxAttribute("ItemId", leftPoint, Y_FirstLine, width, height);
groupHeaderSection1.Items.Add(textBox);
// Add Cost Box
leftPoint += 0.6;
textBox = new Telerik.Reporting.TextBox();
textBox.SetTextBoxAttribute("COST", leftPoint, Y_FirstLine, width, height);
groupHeaderSection1.Items.Add(textBox);
public static class TextBoxExtension
{
public static void SetTextBoxAttribute(
this Telerik.Reporting.TextBox itemBox,
string value, double left, double top, double width, double height)
{
itemBox.Value = value;
itemBox.Location = new Telerik.Reporting.Drawing.PointU(
new Telerik.Reporting.Drawing.Unit(left, Telerik.Reporting.Drawing.UnitType.Inch),
new Telerik.Reporting.Drawing.Unit(top, Telerik.Reporting.Drawing.UnitType.Inch));
itemBox.Size = new Telerik.Reporting.Drawing.SizeU(
new Telerik.Reporting.Drawing.Unit(width, Telerik.Reporting.Drawing.UnitType.Inch),
new Telerik.Reporting.Drawing.Unit(
height, Telerik.Reporting.Drawing.UnitType.Inch));
}
}
Hello Telerik Team,
I have a requirement where I need to show a rad window on a telerik report.In this rad window I will have three paramaters with their own values.When the user selects a paramater and its value from the rad window ..how do you pass these values to the report.
I have the rad window working with combo boxes and i am storing the value from the rad combo box in a view state variable.I have added the report parameters programatically.But how do i pass these values to my report which consists of many formulae computed based on these parameter values.
I greatly appreciate your help.
Please provide me a sample report which has this functionality.
Thank You,
Smith
Hi,
I've got a master-detail report much like you're invoice example.
The subreport has a reportparameter which I then set to a field in the mainreport. So far so good.
But if I then add a filter to the mainreport the report doesn't work anymore, the parts in main are displayed correctly but in the subreport area I get a red text saying:
An error has occurred while processing Report ":
Method GetRowsByStringGuid(System.RuntimeType strGuid) not found.
I use entitydatasource as my datasource and the parameter is actually a guid so I have todo some manual conversion as guid's are not supported.
The strange thing I've noticed however is that if I specify a value for the parameter in the subreport in the ReportParameter Collection Editor like 0 which is not guid but still a valid string. The report works as expected again.
Is this by design or am I missing something or maybe I found a bug?
I'm looking forward to hearing from you.
Tomas
Hi
I have a problem happened when I press "Export" Button and "Print" Button.
I have a webpage with one Reporting.ReportViewer. And i create a project with all my report.vb for my website
because the report is for Chinese, so i set all my report.vb "Style.Font" to Arial Unicode MS.(and this website is build on IIS6.0 in Win2k3 R2.)
everything is work fine in my design environment . but , when I build up in my customer's environment.
this function suddenly no work.(print button is no response, export button show error message)
All i know that there is only one different between two environment. one is English version windows,
one is Chinese Traditional version windows.
please give me a solution or hint to fixed the problem. thanks
Font Arial Unicode MS 8 Regular is not supported.
descript: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。
exception handdle information: System.NotSupportedException: Font Arial Unicode MS 8 Regular is not supported.
original program error:
在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。
堆疊追蹤:
[NotSupportedException: Font Arial Unicode MS 8 Regular is not supported.]
Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +466
Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) +270
Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) +108
Telerik.Reporting.Pdf.PdfFontDictionary..ctor(PdfDocument document, PdfFont drawingFont) +83
Telerik.Reporting.Pdf.PdfFontType0Dictionary..ctor(PdfDocument document, PdfFont font) +17
Telerik.Reporting.Pdf.PdfFontTable.GetFont(PdfFont font) +97
Telerik.Reporting.Pdf.PdfPageDictionary.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) +35
Telerik.Reporting.Pdf.Rendering.PdfRenderer.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) +17
Telerik.Reporting.Pdf.Rendering.PdfRendererGraphicsState.Update(PdfFont font, Brush brush, Int32 renderMode) +46
Telerik.Reporting.Pdf.Rendering.PdfRenderer.Update(PdfFont pdfFont, Brush brush, Int32 renderMode) +77
Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont font, Brush brush, RectangleF rect, Boolean rightToLeft) +57
Telerik.Reporting.ImageRendering.CanvasPdf.DrawStringMultiline(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +377
Telerik.Reporting.ImageRendering.TextBox.Render() +369
Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight) +2323
Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip) +189
Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight) +2429
Telerik.Reporting.ImageRendering.CompositionBase.RenderPageSection(PageArea pageArea, RenderingElement pageSection, Single height) +585
Telerik.Reporting.ImageRendering.CompositionBase.ApplyPageSections() +323
Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) +52
Telerik.Reporting.ImageRendering.CompositionBase.End() +75
Telerik.Reporting.ImageRendering.CompositionPdf.End() +103
Telerik.Reporting.ImageRendering.CompositionBase.Dispose(Boolean disposing) +22
Telerik.Reporting.ImageRendering.CompositionPdf.Dispose(Boolean disposing) +11
Telerik.Reporting.ImageRendering.CompositionBase.System.IDisposable.Dispose() +17
Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +224
Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +21
Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +730
Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +377
Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +462
Telerik.ReportViewer.WebForms.ReportExportOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +60
Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +164
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75