473,835 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1384
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.m icrosoft.com> wrote in message
news:JT******** ******@cpmsftng xa06.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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim asm As [Assembly] =
[Assembly].LoadFrom("c:\t est\ClassLibrar y1\bin\ClassLib rary1.dll")
Dim types() As Type = asm.GetTypes()
For i As Integer = 0 To types.Length - 1
If types(i).BaseTy pe Is GetType(System. Windows.Forms.F orm) Then
Debug.WriteLine (types(i).Name)
Dim o As Object = Activator.Creat eInstance(types (i),
BindingFlags.Cr eateInstance, 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.m icrosoft.com> wrote in message
news:28******** ********@cpmsft ngxa06.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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim asm As [Assembly] =
[Assembly].LoadFrom("c:\t est\ClassLibrar y1\bin\ClassLib rary1.dll")
Dim types() As Type = asm.GetTypes()
For i As Integer = 0 To types.Length - 1
If types(i).BaseTy pe Is GetType(System. Windows.Forms.F orm) Then
Debug.WriteLine (types(i).Name)
Dim o As Object = Activator.Creat eInstance(types (i),
BindingFlags.Cr eateInstance, 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
13150
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 spreadsheet. I'm having trouble with my code at the point at which it hits ".ReadRecords" -- the module just runs and runs without generating anything. I've gotten this code to correctly save .rpt files without any data, but not with data, nor have I been...
3
4110
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. The field in the report is a text box: named Text12. Bad coding I know. The concat goes like this... =Str() & "-" & & "-" & & "-" & ToCompany is a number. Like I said it works for all others but one
1
5509
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 the "Report's Name.snp" is entered as the file name to be saved and the file can be saved to the specified location. If however I try to give the report a different name by entering an object name like this:
2
2478
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 As Boolean, CmdClose_Clicked As Boolean Private Sub CmdClose_Click() On Error GoTo Err_CmdClose_Click 'Check, if there are any messages marked to delete
12
5603
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 installed on our system (under Windows 2000 Professional). Currently, we are using MS Access 2000. Early next year we will be moving to Windows XP (probably converting to MS Access XP as well) and have been told that Adobe Acrobat v6 is to be installed...
4
3757
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 file denied. Another program may be using it." It works with other reports but not this one. Code using for export: Dim myExportOptions As CrystalDecisions.Shared.ExportOptions Dim myDiskFileDestinationOptions As...
13
3946
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 file...whatever. I described my situation to the guy I'm doing work for and he did some research for me and came up with the following link. http://www.novapdf.com/ The part that should excite us Access developers is their SDK
11
9702
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
1936
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 Report control. My problem is in rendering the report from the rdlc file for printing to a line printer. Following the example from MSDN Help at http://msdn2.microsoft.com/en-us/library/ms252172(VS.80).aspx I can print the rdlc report...
0
9653
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5808
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4435
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3094
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.