Sample queries for c# and RDLC Report [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would like to ask for any sample queries that used to retrieve multiple field from table to do maths calculation?
Another thing is, should I do the calculation in the rdlc report by using Expression, or using queries?

I don't understand your first question. But I will gladly answer your second one from my point of view:
I try to do most calculations on the Database. Because thats what a database should do and complex expressions are not very good and easy to maintain.
You will have to use Expressions on top of that alle the time (in complex reports) so I prefer to do all on the Database that can be done there.
But only as long as your SQL Queries are maintainable and fast.

Related

Generate C# code from drawn table [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Right now I am developing C# desktop application for some insurance company. Their reports have a lot of unusual tables with a lot of fields and I have to draw all that tables by using C# drawing class which takes a lot of time.
So I was wondering if there is any tool that can generate C# code for that table after drawing that table using mouse? Or if there is any way I can insert some data in already drawn MS Word table?
You can use COM to write in MS-Word tables:
https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-programmatically-populate-word-tables-with-document-properties
Microsoft SQL Reporting Services is the best Tool for Reports (if you are already at the microsoft side)

How to compare string with for loop in c# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm creating a mini code generator in c#. Say i have a string
string val= "i=0;i<5;i++";
As I'm taking complete structure of for loop as a string. How to find the syntax error if user gives wrong input? For example terminator missing or other logical errors? Should i have to use regex?
No i don't think regex is good option because you have to take many things into consideration.
but i would suggest try this instead
https://support.microsoft.com/en-us/help/304655/how-to-programmatically-compile-code-using-c-compiler
using c# compiler itself to do work for you.
but keep that in mind this will ask for whole c# code so you may have to do some string manipulation to get around that.

Multiple Datasets in One SSRS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I cannot use First() because I have multiple data to return.
I cannot use Lookup() because I don't know what data to look for.
Any other workaround? or the only way is I have to change my query?
Your question is very unclear. But since you mention First() you are probably trying to include a data from dataset1(with multiple data) to a table where that table is using dataset2(with multiple data). First() here is not possible since it will only take the first data.
If your data(multiple data) is just numbers you could use
=SUM(Fields!Field.Value, "dataset1")
to sum your data from another dataset but if your data is not a number I advice you create another query to handle your data output. Its much easier to join tables in there. Then create new dataset for that query. This will make your life easier.

How to construct family tree using asp.net c# and SQL server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a database schema. How do I construct a family tree using asp.NET, C# and SQL server? Also, how can I show you the database schema?
I suggest you take a look at Family Show, a WPF application which enables you to view and/or edit a family tree. I think that with some tweaking you will be able to make it work against SQL Server using your database schema.

Razor in winforms [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For my job i have to make many small projects that require to send different mails and set up some html. I usually make these forms in Winforms. Now at this moment whenever i need to fill my html I take the string replace some values and have functions that write hardcoded table rows.
To make my job a little easier I was wondering if it was possible to import the razor engine(not sure if it's the right word choice) in my winforms project and simply pass a model to a CSHTML file which returns me the HTML in a string so i can mail it to coworkers.
If this is possible, instructions on how to do it are welcome.
Kind Regards Roxas

Categories

Resources