By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,696 Members | 1,382 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,696 IT Pros & Developers. It's quick & easy.

Creating an Instance of a Class at Runtime

P: n/a
I am trying to create a generic form driven the database. I want to be able
to run create Crystal reports from this genric page and only want to have to
enter some info in the database and drop the .RPT and .VB file of the report
into a certain directory.

My problem is how do I create an instance of a certain report at runtime. I
will know the Class name from the VB file, but I do not know how or if I can
create an instance of that class at runtime only having its name as a
string.

Any help would be appreciated.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Activator.CreateInstance.

"Gunner" <gu****@docksidesoftware.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am trying to create a generic form driven the database. I want to be able
to run create Crystal reports from this genric page and only want to have
to
enter some info in the database and drop the .RPT and .VB file of the
report
into a certain directory.

My problem is how do I create an instance of a certain report at runtime.
I
will know the Class name from the VB file, but I do not know how or if I
can
create an instance of that class at runtime only having its name as a
string.

Any help would be appreciated.

Nov 21 '05 #2

P: n/a
"Gunner" <gu****@docksidesoftware.com> schrieb:
My problem is how do I create an instance of a certain report at runtime.
I
will know the Class name from the VB file, but I do not know how or if I
can
create an instance of that class at runtime only having its name as a
string.


<URL:http://groups.google.to/groups?selm=Or5f9nXBFHA.2180%40TK2MSFTNGP12.phx.gb l>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.