473,320 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Report library file

Is it possible to do this...

I want to make a DLL file full of reports done in crystal reports, but then
i want to get a listing of all the reports in the dll file (kind of an
available report listing) anyway to do this? thanks
Nov 21 '05 #1
4 1355
Hi Brian,

Since Crystal report issue is supported by Business Objects, I am not
familar with the crystal report issue.
At a quick look, if the report is an instance in the memory then we can
build the dll as as class, when we add reference to the dll and then new
the instance of the class and then call some of its methods to build the
report instace and return the instance for further use.

For detailed information, I suggest you post in the crystal report forum
for further response.
Here is the Forum you may have a try.
http://support.businessobjects.com/f...?fid=251&sk=5&

http://support.businessobjects.com/

Crystal Reports Samples
http://support.businessobjects.com/fix/samplescr.asp
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
well, how bout in a general issue like this (kind of the same thing) if you
had a link library full of forms, (nothing else just winforms) and none were
instanciated just the library full of classes, and you wanted to get a list
of all the forms in the link library from another project that referenced
this DLL, could you in the other project maybe through reflection or
something? get that list of all the form classes in the DLL then instanciate
it to create a form on screen from the DLL file? thanks!
""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:JT**************@cpmsftngxa06.phx.gbl...
Hi Brian,

Since Crystal report issue is supported by Business Objects, I am not
familar with the crystal report issue.
At a quick look, if the report is an instance in the memory then we can
build the dll as as class, when we add reference to the dll and then new
the instance of the class and then call some of its methods to build the
report instace and return the instance for further use.

For detailed information, I suggest you post in the crystal report forum
for further response.
Here is the Forum you may have a try.
http://support.businessobjects.com/f...?fid=251&sk=5&

http://support.businessobjects.com/

Crystal Reports Samples
http://support.businessobjects.com/fix/samplescr.asp
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #3
Hi Brian,

Yes, we can use the reflection to enumerate the form class in the assembly.
Here goes the code snippet.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim asm As [Assembly] =
[Assembly].LoadFrom("c:\test\ClassLibrary1\bin\ClassLibrary1 .dll")
Dim types() As Type = asm.GetTypes()
For i As Integer = 0 To types.Length - 1
If types(i).BaseType Is GetType(System.Windows.Forms.Form) Then
Debug.WriteLine(types(i).Name)
Dim o As Object = Activator.CreateInstance(types(i),
BindingFlags.CreateInstance, Nothing, New Object() {}, Nothing)
o.Show()
End If
Next
End Sub

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #4
thanks that did exactly what i was looking for!
""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:28****************@cpmsftngxa06.phx.gbl...
Hi Brian,

Yes, we can use the reflection to enumerate the form class in the
assembly.
Here goes the code snippet.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim asm As [Assembly] =
[Assembly].LoadFrom("c:\test\ClassLibrary1\bin\ClassLibrary1 .dll")
Dim types() As Type = asm.GetTypes()
For i As Integer = 0 To types.Length - 1
If types(i).BaseType Is GetType(System.Windows.Forms.Form) Then
Debug.WriteLine(types(i).Name)
Dim o As Object = Activator.CreateInstance(types(i),
BindingFlags.CreateInstance, Nothing, New Object() {}, Nothing)
o.Show()
End If
Next
End Sub

You may have a try and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
3
by: MT 2MB | last post by:
I created an access journal entry program many years ago. It works for all and was working for an individual until recently. The report shows ?Name! for every instance it repeats in the report. ...
1
by: Wayne | last post by:
I'm trying to save a report as a snapshot. If I use this code: DoCmd.OutputTo acOutputReport, "Snapshot Format (*.snp)", , False everything works fine, the file save dialogue box appears and...
2
by: Galina | last post by:
Hello All of a sudden I started getting error 13, type mismatch in a command, which was running happily for years. Here is a code: Option Compare Database Option Explicit Dim CmdClose1_Clicked...
12
by: DGB | last post by:
Hello All, I have been doing quite a bit of research in this group and have not been able to find the answer that I am looking for. Here is my issue. We currently have Adobe Acrobat v5...
4
by: Mandar | last post by:
I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOCALS~1\Temp\temp_0c6b2c59-df8a-4b26-a570-a2189ee212ac.rpt: Access to report...
13
by: salad | last post by:
Hi Guys: I was stuck. I needed to send a report to a file. My beautiful report(s) in Access were going to require loss of formatting with RTFs, a PITA in WordMailMerge, sending it as a text...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
2
by: =?Utf-8?B?UmljaA==?= | last post by:
On my development machine where I have Visual Studio 2005 loaded, I have an app that uses the Report control. I can view data in report format with the Report control -- the data renders OK in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.