Passing date through hyperlink in Rdlc Report - c#

I want to redirect to a page from Rdlc report through hyperlink in a report.it have three parameters id , Startdate, Enddate. Date is not casting properly as it disable hyperlink from column and it doesn't work any suggestion. I casted date in many ways but it does'nt much helpfull.
help please

Related

CalendarView in UWP C# showing wrong day

I have CalendarView on two pages.
First page is used to add records to calendar by assigning the selected date to the database record.
Second page is used to show all records assigned to the selected date.
Now, when on the first page I assign date to the product by clicking the date manually, on the second page product is shown correctly when selected date that corresponds to the products date.
However, when on the first page I add dates to the products programmatically, on the second page, these products are shown one day before than they should.
I have no idea what is happening. I will post code if you want to check something.
THe problem is strange, becaue on one calendar these automatically added dates are shown for example on 5th April, but on the second calendar they are listed under 4th April.
Is that the globalization of two calendars problem?
Locale(globalization ) would be a potential problem. But having code would help us to provide you more info.
I have managed to resolve the problem. It was in deed issue with DateTimeOffset/DateTime values.
I changed every instance of Date I found in the code by appending it with
.LocalDateTime
.
This way I got the correct local date of each DateTimeOffset object and data is added to/ pulled from the Calendar correctly.

How to modify data before diplaying it in DevExpress Reports

I have several pages that contains a Report in each one, and I used a base class for these pages called ReportBasePage.
The Report shall view some date fields in it beside other fields, and now I want to do some modifications on the report parameters before displaying them on the report. How could I do that?
In other words, I want to change the date format from the base page before being displayed on the report.
If you want to show the date in different format, you can change the FormatString of the control that is displaying the date value (for example XRLabel). Set the FormatString to your desired date format (for example "{0:dd-MM-yy}")
If you need to change the value (not the format) of the report parameters, you can do it using the XtraReport event "ParametersRequestSubmit".
Regards.

Altering a value in a rdlc report through .aspx.cs C# code

First off I am using Microsoft Visual 2010 on windows 7, so I have .net 4.0 programming.
I have created an ASP.NET project and made an .rdlc report and it displays the data great, but I would like the report to display a title similar to:
All values from [startDate] to [endDate] for [ID].
--Rest of Report in columns and rows--
From the .aspx web design page, the user enters the startDate and endDate into TextBox's: TextBox1 and TextBox2. Although the startDate and endDate is passed into a SQL command, it's not returned in the query as data to display.
Is there a way in the aspx.cs section of code (in C#) to change the values in the report itself using the TextBox1.Values.
Basically to set [startDate](from the .rdlc report) to TextBox1.Values from the .aspx ... etc.
Something like (even though I know this is isn't correct):
ReportViewer1.startDate = TextBox1.Value;
Thanks for the help if any.
Edit:
I would post picks of what I am trying to do but I am new and reputation is to low it seems.
Basically in the .rdlc report I want to display in a TextBox.
Here are all the values for [Item] from the dates [startDate] to [endDate].
In a table in the report all the data is shown.
Example:
Here are all the values for TK421 from the dates 6/13/2014 to 2/3/2015.
Item | Value1 | Value2
TK421| 127 | 4
The web page is simply
Start Date | End Date | Item
TextBox1 | TextBox2 | DropDownList1 | SearchButton
What I am simply trying to do is take the TextBox1 item from Start Date in the web page and put it in the [startDate] Field of the report. I have yet to find a good source of information on how to do this with some weird error.
It depends on how you use your ReportViewer component but if you use LocalReport property then you can onway set your parameters in .aspx codeBehind page like this:
YourReporViewer.LocalReport.SetParameters(new ReportParameter("startDate", TextBox1.Value));
You also can do it with ServerReport property.
For more detailed information you can read this.

Two CalendarExtenders?

I have a popup ajax calendarextender that populates a text box with the selected date, (MM/dd/yyyy). This works. I want to capture the same date in an additional text box with a different format (yyyyMMdd). The first is for display and the second date is a parameter for gridview query. Is this done with two calandarextenders? (btw I'm using C#)
If you are supplying one to a query, you could just change the parameter value in code before supplying it to the query.
var datetimeForQuery = extenderVariable.SelectedDate.ToString("yyyyMMdd");

Crystal Reports Omitting Data

This might be a pretty simple question but I'm a Crystal Reports newbie...I have a report where I want specific pages that have a corresponding column omitted. So for example say it has someone's name and information on every page, how would I use a column that for example has the state on it, to omit certain results, like I don't want any pages in the report generated from states that have the "state column" from the database equal to like "TX" or something. This isn't what I'm actually doing, but it's an example of the functionality I want.
I'm thinking it would be in either the group or record selection formulas but I'm not sure how to go about putting it together to not create a page for the results when a certain column is equal to a value.
-Thanks from a total Crystal Reports noob.
So each page of the report is one record in the result set (someone's name and information) and you want to exclude some pages based on the value of one of the columns?
Perhaps I'm not understanding the problem correctly but can't you just change the datasource query?
WHERE state <> 'TX'

Categories

Resources