|
John -
I got the debug error message wrong in my last reply. It is "Interop.VBIDE was not found."
Sorry!
nvmoss
|
|
|
|
|
i m fairly new to crystal reports.can anybody plz tell me how to use crystal reports in VB and how to pass parameters in the report at run time
preeti
|
|
|
|
|
Although it might depend on which version of Crystal Reports you are using, there is something like a Parameters collection for report parameter variables, accessed with either an integer, (i.e., rpt.Parameters(1).Value = "XYZ") or the name of the parameter (i.e., rpt.Parameters("NAME").Value = "XYZ") all of which should be documented in the Crystal Reports documentation, but, if necessary, I can find the exact code I used last time I did this with CR 8.5. I'd have to experiment with CR 9.x+ to see if works the same way.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
OK, here's what I did in VB6 w/ Cr8.5:
Set crystalApplication = New CRAXDDRT.Application
Set crystalReport = crystalApplication.OpenReport(strReportFile, 1)
With crystalReport
.ExportOptions.DiskFileName = strExportFile
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.FormatType = crEFTWordForWindows ' crEFTPortableDocFormat
.ExportOptions.WORDWExportAllPages = True
.DisplayProgressDialog = False
.ParameterFields(1).AddCurrentValue strGroupName
' .RecordSelectionFormula = strSelection
.Export False
End With
Set crystalReport = Nothing
Set crystalApplication = Nothing
FYI, to the best of my knowledge, this requires CR 8.5 developer edition.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I have inserted normal files in setup but how to go bout merge modules in a setup is not happening. how to insert merge module in a setup.
thanx
Be Humble in Victory and Strong in Defeat. -Het
|
|
|
|
|
Can anyone tell me please! where I can find free vb.net tutorials.
Thanks
|
|
|
|
|
try this link below
http://www.dotnetspider.com/technology/
http://www.programmingtutorials.com/vbnet.aspx
http://www.vbdotnetheaven.com/Sections/Tutorials.asp
most of the site teach u by showing example.....you can learn from the examples....;)
|
|
|
|
|
hey im just starting visual basic at my school and i was trying to make a program that sends an anonymous net send. I've already got the main stuff down to send the message, i just dont know how to make it anonymous. Any help?
|
|
|
|
|
|
|
|
sorry, but i cant install all this stuff on the school computers. Is there any way to do it through VB? The first link you gave me added something about a 'netmessagenameadd' command. Is there anything like that in VB?
|
|
|
|
|
|
Hi all,
Is there a way to retrieve the name of the variable containing an object passed to a subrouting. Here is a simple illustration meant to explain my question;
I have the following two class defintions
Public Class Address
public City as string
...
End Class
Public Class Organisation
Public MailingAddress as new Address
public BillingAddress as new Address
public sub CallSomething()
' pass the object whose variable name we want to display
CallingSomething(MailingAddress)
end sub
public sub CallingSomething(objAddress as Address)
'display the name of the variable of objAddress as it is known in my Class Organisation. The display should be "MailingAddress".
end sub
End Class
Using objAddress.GetType.Name gives me the "Address" which is the class name but I'm looking for the variable name "MailingAddress". If I had passed the BillingAddress, obviously I would want to display "BillingAddress". Can this be done in VB.NET?
Thanks in advance.
Ronald Bastien.
Strategium Technologies inc.
|
|
|
|
|
Ronald Bastien wrote:
CallingSomething(MailingAddress)
cant you just put "MailingAddress", including the quotes, as the paramater to pass to the CallingSomething procedure?
------------------------
Jordan.
III
|
|
|
|
|
I could but I'm already passing the object so I don't want to pass the name as well. This object can also be passed down through an hierachy of calls and again, I don't want to have to pass the name with the object.
Cheers.
Ronald Bastien
Strategium Technologies inc.
|
|
|
|
|
i must not be understanding, or too new at this.
"
public sub CallingSomething(objAddress as Address)
'display the name of the variable of objAddress as it is known in my Class Organisation. The display should be "MailingAddress".
end sub
"
if you send the string "MailingAddress" to this procedure, from the CallSomething procedure, it will do what it says you want here:
"The display should be "MailingAddress."
sorry im
what are you going to do with the variable name once it is passed? just display it?
------------------------
Jordan.
III
|
|
|
|
|
Jordan, You're right but I'm oversimplyfying my code to give an example of what I'm looking for.
Is it possible in the CallingSomething routine to access the objAddress object and through some property (from the framework) get the name the variable from the caller?
The thing is, I need to pass the object so I don't want to pass an additional string with it's name. I'm also passing this object to other routines so this makes it a less attractive solution.
Cheers
Ronald Bastien
Strategium Technologies inc.
|
|
|
|
|
hmmm... sorry
iv been looking into it, and fooling around, and of course cant figure it out. i hope someone can help.
please let me know the solution, if one arises, Ron.
gNite.
------------------------
Jordan.
III
|
|
|
|
|
Unless I'm mistaken (which could certainly be the case) the ability that you're looking for is contained in the System.Reflection namespace.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
There is no way to do this in C#. System.Diagnostics.StackFrame gets the closest, but it does not know about instance information; only types.
There is a probably a more natural way to get what you want. Maybe passing in an object which has Address members and letting CallingSomething iterate it's members looking for them? Then it could output all the members which have a certain type by name.
Without knowing more about the requirements, it's hard to say.
--
Aaron
|
|
|
|
|
what doe it mean by this....
An unhandled exception of type 'System.Data.OleDb.OleDbException'
occurred in system.windows.forms.dll
can somebody tell me?
|
|
|
|
|
An error occurred while you were performing a database operation or attempting to access a database.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
owh.....hmmm....is it maybe because i input the wrong data type?
|
|
|
|
|
OleDbException is generic for lots of things. Depends on what you were trying to do and what your code looks like.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|