Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 how to create .dll

Author  Topic 

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 09:33:13
I have to create .dll in order for the sql code to be generated in a crystal report. If you guys have any good websites or any idea how i can, i will very much appreciate it.

Thank you.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 09:36:06
Why?

Is this question related to this one?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=116518



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 09:37:29
You are not giving us much information to go on.
Please read and understand the concept of this blog post!
http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 09:39:34
Unfortunately, Yes.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 09:58:25
Why do you think you need a DLL?
Have you read the blog post?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:00:38
Alright. That is a website everyone should read every morning. Thank you for that and i'm not being sarcastic.

My question is,
I need to create a Crystal Report. I created 3 subreports in it and it won't execute horizontall at the same time.
This is how it comes up to be:
Docket Latest x Date Latest y Date Latest m Date
12345 2008/01/09

2008/01/25
2008/02/02
23456

and so on....

I tried to do in the same subreport and it doesn't work. same issue. i did it in 3 diff subreports and it doesn't seem to work either. same issue.

That's why i've decided that sql might be a good idea. But then, it would still have to be created in crystal report. so i've created 3 Views that would get the latest date for x, y and m. Once that is completed, i inputted into Crystal Report. That does not run either. Now, a suggested idea of creating .dlls for each latest date and inputting it into crystal report seems to be a good idea. But, i don't know how to create .dlls. I googled it and they have of creating it in differnet platforms. I am not sure whether it is a good idea to go this way. Let me know.

Thank you
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 10:02:50
Crystal Reports can use the resultset from a stored procedure as source for report data.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 10:03:45
And we don't know what the three subreports are for and what the are used for and what kind of information they display.
We can't see them...



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:07:26
Yes. That is my plan. Let the sql code generate the data and then generate the code from crystal. Views can be defined as a stored procedure. But it does not seem to work. Is it possible to create something so that it brings all the generated data into crystal; not one by one? Hopefully, i am making sense.
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:08:01
Each subreport were created to bring the latest date for x, y, and m
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:09:28
the code in each subreport is basically,
get the maximum date when value = m in 1 sub report.
the other is get the max date when value = y and so on.

It does get the latest value, but not generating horizontally.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 10:13:10
That is because you have three subreports...
Why!? It's beyond my comprehension.

You only need a crosstab/pivot report for doing this, without subreports...



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:35:35
This article is being helpful.
http://weblogs.sqlteam.com/jeffs/archive/2005/05/02/4842.aspx

I did not know that you can create more than 1 data in a crosstab/pivot in crystal report. I am researching and reading now that i know it is capable.

Thank you for that. I will try it out and see how things are working.

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-19 : 10:38:21
You DON'T need a dynamic crosstab/pivot query if you only want the last dates for x, y, and m types.
Then you have a fixed number of columns.
All this is explained here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=116518



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Vithi
Starting Member

19 Posts

Posted - 2008-12-19 : 10:46:00
okay.
Go to Top of Page
   

- Advertisement -