Telerik Forums
Reporting Forum
0 answers
189 views
Hello all,

Can someone please tell me how the Telerik Reporting engine infers what is static text versus what is not static text?

For example, I have a textbox included in my Report Header Section whose value is to set to some fields from the datasource the report is bound to.  That being said, during the export to CSV, this is treated as static text.  I am NOT displaying static text in the CSV export, thus this field is not showing up on the export (but I need it aka I don't want it as static text). 

So can someone please tell me the conventions this reporting engine is using to infer what is static text against what is not static text.

I am trying to avoid writing a second report just for CSV exports as well overriding any report rendering methods unless I absolutely have to.

Thanks in advance,     

Forest
 

Forest
Top achievements
Rank 1
 asked on 29 Aug 2011
1 answer
111 views
hi,

when i convert a radgrid into pdf the image button disappear in the pdf file, 
help me 


here my code


<ExportSettings IgnorePaging="false" OpenInNewWindow="true">
                        <Pdf PageHeight="270mm" PageWidth="297mm" PageTitle="Master Billing Report" PageBottomMargin="20mm"
                            PageTopMargin="20mm" PageLeftMargin="20mm" PageRightMargin="20mm" />
  </ExportSettings>   





 <telerik:GridTemplateColumn HeaderText="Image" UniqueName="imgbyte">
                                <ItemTemplate>
                                 
                                <asp:ImageButton ID="asdf" Width="90px" Height="68px" Style="border: 1px solid #000000;"
                                        runat="server" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>


cs code

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.ExportToPdfCommandName)
            isPdfExport = true;
        }
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (isPdfExport)
                FormatGridItem(e.Item);
        }

protected void FormatGridItem(GridItem item)
        {
            item.Style["color"] = "#eeeeee";


            if (item is GridDataItem)
            {
                item.Style["vertical-align"] = "middle";
                item.Style["text-align"] = "center";
            }


            switch (item.ItemType) //Mimic RadGrid appearance for the exported PDF file
            {
                case GridItemType.Item: item.Style["background-color"] = "#4F4F4F"; break;
                case GridItemType.AlternatingItem: item.Style["background-color"] = "#494949"; break;
                case GridItemType.Header: item.Style["background-color"] = "#2B2B2B"; break;
                case GridItemType.CommandItem: item.Style["background-color"] = "#000000"; break;
            }


            if (item is GridCommandItem)
            {
                item.PrepareItemStyle(); //needed to span the image over the CommandItem cells
            }


        }



Daniel
Telerik team
 answered on 29 Aug 2011
1 answer
108 views
Hello,

I have a problem using the Web ReportViewer, the issue is that the URL that is configured on the IIS where the site is running is not the same that the users employ to access the site. In other words, lets say my site address is http://www.site.com/ but the site can also be reach using http://www.clientsso.com/example/.

Now, lets say that on the homepage you can find a report using the ReportViewer, if you access the site using the http://www.clientsso.com/example/ address you are going to get a 404 when trying to export the report because the viewer is going to redirect the user to a URL starting with / which is not actually the root of the site when using that domain.

So, my question, is there any way in which I can instruct the viewer to use a given URL as the base for all redirects or requests?

Thanks in advance,

Javier
IvanDT
Telerik team
 answered on 29 Aug 2011
0 answers
96 views
Hello
I added pictures to the report. do not appear in runtime. but the picture appears in pdfoutput. does not fault. Do you help please
Burak
Top achievements
Rank 1
 asked on 26 Aug 2011
12 answers
542 views
Has anyone had any luck using the CanShrink property to cause text boxes to move up when the textboxes above them are empty. It is described in the final example of the link below but I can't make it work.

http://www.telerik.com/help/reporting/faqshrinktextboxeswithnodata.html
Thanks,

Damian.


Michael Yereniuk
Top achievements
Rank 1
 answered on 26 Aug 2011
1 answer
159 views
Hi,

We need to make a report with on every page a barcode. This barcode is used in a postsortingmachine.
This barcode will be different depending on pagenumber. Is it possible to see on what page u are in the report?
Then we can use the pagenumber to use so logic that creates the correct barcode for that page. U can see this barcode as a secuence of stripes in a vertical way.
If i read the lifecycle then i would say it's not possible. But maybe there is a way to do this anyway.

Kind regards,
Peter
Telerik team
 answered on 26 Aug 2011
1 answer
110 views
I saw Robert Shoemate. videos on Telerik Reporting and I have been able to follow along and get pretty good results. Now I need to use it with silverlight (WCF Reporting Service) and I know he mentioned there is a video that shows how to set this up. Would you point me out to that video please? I have not being able to set it up properly. I would appreciate it if there is some stepwise approach to get this done. Thanks a lot.

G
Peter
Telerik team
 answered on 26 Aug 2011
1 answer
114 views
I'm trying to create a drop-down list of values to be used as a report parameter.  These values need to be created programatically at runtime since they are not being retrieved from a database.  I would like to have the same functionality as if this list was being retrieved from a database (i.e. drop-down list of checkboxes to select one or more items, the "select all" option, etc.)

How can the above be done?

Thanks,
Rob
IvanDT
Telerik team
 answered on 26 Aug 2011
1 answer
634 views
I realize this is jumping into the deep end early but I have just started using Telerik reporting to replace a Crystal Report that I was generating for my company based on an Access database.  Our current infrastructure is set up using an individual Access DB per project so the data binding must be accomplished at run time. In CR, I could simply create the report with no datasource and at run time bind the datasource using

crComCheck1.SetDataSource(dgvComCheck.DataSource)

To mimic this functionality, I have created a Telerik report with an ObjectDataSource.  This ObjectDataSource has its DataSource property set to an xsd dataset that I have defined in my Visual Studio project with the column structure that I desire.  In doing this, I am able to set up a report with the column structure that I would ultimately like to see produced with an object to bind to at runtime.  In code, I am binding this datasource to a datagridview using 

TrComCheck1.ObjectDataSource1.DataSource = dgvComCheck.DataSource

When I go to the Telerik report viewer and refresh the report, it properly pulls all of the columns and row data that I want to see but produces a table for each individual record in the dataset.  So if there were 4 records in the dataset, there would be 4 tables each with the 4 correct records. I was wondering if you could offer some guidance as to why it was behaving in this fashion. Thank you.
Peter
Telerik team
 answered on 26 Aug 2011
4 answers
146 views
Hello,

We are facing problem in Excel Export and giving message 

Attempting to get range {3,21}-{7,1},Merged=False,Parent=rptSummary[0], that intersects with an already merged range.

We have noticed that there is a textbox, causing problem if we reduce the width below  0.34in then it throw error otherwise not. Please confirm if there is any limit that textbox width cannot be less than this.

Version: 2010.3 1221

Thanks,
devoas,




Peter
Telerik team
 answered on 26 Aug 2011
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?