|
i have also been trying to create crystal reports programatically like u. i s'pos what u mean is that u want to create a crystal report using the dataset u created and populated with data at runtime.
i think the only thing u can do is create the dataset by placing an apapter object from the toolbar. and populating the dataset using the fill method. then creating the report using that dataset.
if u want to do it programmatically i think u have to use temporary tables. wht i mean is u create a temp table in advance in your database then insert the data u want to display in the report at runtime. then create the report and display the data.(assume u know how to do it)
there is no other way to do it. i think. i have been trying it for some months now and i decided to finish the project i am doing the way i said. it works. so go ahead.
|
|
|
|
|
I have an existing vb.net application that runs on a local machine in our company. Currently, you must be at that machine in order to control it. I would like to add the ability to control some simple features from a browser on other machines on our intranet. However, I do NOT want to have to rewrite the application as an asp app or have it run on a web server. I also CANNOT break out the internal classes of this application into dlls.
Is it possible to *add* asp-type capabilities to this existing vb.net app? Any examples of a simple vb.net app doing so are appreciated.
|
|
|
|
|
smarr wrote: I would like to add the ability to control some simple features from a browser on other machines on our intranet. However, I do NOT want to have to rewrite the application as an asp app or have it run on a web server. I also CANNOT break out the internal classes of this application into dlls.
So are you saying that you want to create a web app that doesn't run on a web server ? Your other alternative is to write a web server. That is a/ a lot of work and b/ meaning you'll still be running on a web server.
smarr wrote: Is it possible to *add* asp-type capabilities to this existing vb.net app?
The way to do this is to reuse your business logic, and write an ASP.NET presentation layer. You'll need to 'break' internal classes into a new project, if you can't put them in a dll, you'll need to just copy them. The resultant app will, by definition, need to be on a web server.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I believe I understand what you are saying--that adding asp capabilities to an existing vb.net app is not trivial (or possible?) and the "guts" of the app will need to be moved into an asp.net application. Correct?
I can live with a web server, and could probably incorporate one into the machine which is running this app. However, the application is far too complex to be easily ported to an asp application (or any other type, for that matter). The core logic is deeply ingrained into the application and could not be moved (easily) into a dll.
|
|
|
|
|
smarr wrote: that adding asp capabilities to an existing vb.net app is not trivial (or possible?) and the "guts" of the app will need to be moved into an asp.net application. Correct?
Mostly. It is in fact possible to add a web app to your existing project, but you'd have two vbproj files, and I think it's too messy to do it that way
smarr wrote: The core logic is deeply ingrained into the application and could not be moved (easily) into a dll.
I guess that makes this a lesson in application design Any half decent app should be written so that the business logic is easily divorced from the presentation layer. Too late for that now. If you can't seperate the two, then I guess your best bet is to build a web app and then add all the code you need from your application, so that you can access the business logic from the web pages.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If I have a dialog that has been opened from my main form using code such as this:
Dim frm As New frmService
frm.ShowDialog(Me)
how do I prevent the whole application being minimised if the dialog is minimised?
-- modified at 16:50 Sunday 22nd January, 2006
I'm using VB.NET in Visual Studio 2003.
|
|
|
|
|
Set ShowDialogInTaskbar to true, which is the default.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I tried setting this to true prior to my original post but I got the same result.
Is there anything else which would cause this?
|
|
|
|
|
Maybe you can't set the owner on a dialog that you want to behave independently.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have tried both setting the owner and leaving the dialog ownerless.
I have also tried setting ShowDialogInTaskbar to TRUE and FALSE.
No matter what combination I try the whole application becomes minimised when the dialog is minimised.
Can anyone provide a small sample app that lets the user minimise a dialog without the whole application being minimised?
|
|
|
|
|
As it's a modeless dialog, perhaps you just want to have a button that hides it on the dialog ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I finally got it working by using the following code:
Private Sub CustomForm_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.LocationChanged<br />
<br />
If Me.WindowState = FormWindowState.Minimized Then<br />
Me.Owner.WindowState = FormWindowState.Normal<br />
End If<br />
End Sub
What caused some problems was that when the application was launched in debug mode from Visual Studio, Visual Studio itself seemed to be the owning window rather than the parent form.
The good news is that it all works in when run as the release build exe file.
|
|
|
|
|
Somebody know how to connect an object pointer of an interface. I got errors at IAMTVTuner get and put.
<code>
Public Sub TvTuner()
Dim hr As Long
Dim pIAMTVTuner As Long
Dim oIAMTVTuner As IAMTVTuner
Dim riidIAMTVTuner As VBGUID
'{211A8766-03AC-11d1-8D13-00AA00BD8339} = IAMTVTuner
riidIAMTVTuner = StrToGUID("{211A8766-03AC-11d1-8D13-00AA00BD8339}")
Dim rclsidWDM As VBGUID
'{266EEE40-6C63-11cf-8A03-00AA006ECB65} = WDM TV Tuner
rclsidWDM = StrToGUID("{266EEE40-6C63-11cf-8A03-00AA006ECB65}")
hr = CoCreateInstance(rclsidWDM, 0, CLSCTX_INPROC_SERVER, riidIAMTVTuner, pIAMTVTuner)
If hr = S_OK Then
Set oIAMTVTuner = GetObject(pIAMTVTuner)
Dim x1 As Long
oIAMTVTuner.get_CountryCode x1 'x1 => -1
oIAMTVTuner.put_Channel 38&, 38&, 38& 'Run-time error '5': Invalid procedure call or argument
End If
End Sub
Public Function GetObject(ByVal pObject As Long) As IAMTVTuner
Dim o As Object
PutMem4 o, pObject
Set GetObject = o
PutMem4 o, 0
Set o = Nothing
End Function
</code>
This is the TypeLib odl-file
<code>
[
uuid(1A4C3A6A-50AE-11D1-BB71-00C04FAD8B08),
version(1.1)
]
library QuartzPropertyTypeLib
{
importlib("StdOle2.tlb");
typedef enum tagTunerInputType
{
TunerInputCable,
TunerInputAntenna
} TunerInputType;
typedef enum tagAMTunerModeType
{
AMTUNER_MODE_DEFAULT = 0x0000, // default tuner mode
AMTUNER_MODE_TV = 0x0001, // tv
AMTUNER_MODE_FM_RADIO = 0x0002, // fm radio
AMTUNER_MODE_AM_RADIO = 0x0004, // am radio
AMTUNER_MODE_DSS = 0x0008, // dss
} AMTunerModeType;
typedef enum tagAMTunerEventType{
AMTUNER_EVENT_CHANGED = 0x0001, // status changed
} AMTunerEventType;
interface IAMTunerNotification;
[
object,
local,
uuid(211A8766-03AC-11d1-8D13-00AA00BD8339),
pointer_default(unique)
]
interface IAMTVTuner : IAMTuner
{
// Gets the supported analog video standards (NTSC/M, PAL/B, SECAM/K1, ...
HRESULT get_AvailableTVFormats(
[out] long *lAnalogVideoStandard
);
// Gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ...)
HRESULT get_TVFormat(
[out] long * plAnalogVideoStandard
);
// Scans for a signal on a given channel
// NOTE: this is equivalent to put_Channel(), SignalStrength()
HRESULT AutoTune(
[in] long lChannel,
[out] long * plFoundSignal
);
// Saves the fine tuning information for all channels")]
HRESULT StoreAutoTune();
// The number of TV sources plugged into the tuner
HRESULT get_NumInputConnections(
[out] long * plNumInputConnections
);
// Sets or gets the tuner input type (Cable or Antenna)
HRESULT put_InputType(
[in] long lIndex,
[in] TunerInputType InputType
);
HRESULT get_InputType(
[in] long lIndex,
[out] TunerInputType * pInputType
);
// Sets or gets the tuner input
HRESULT put_ConnectInput(
[in] long lIndex
);
HRESULT get_ConnectInput(
[out] long *plIndex
);
// Gets the video and audio carrier frequencies
HRESULT get_VideoFrequency(
[out] long *lFreq
);
HRESULT get_AudioFrequency(
[out] long *lFreq
);
};
[
object,
local,
uuid(211A8761-03AC-11d1-8D13-00AA00BD8339),
pointer_default(unique)
]
interface IAMTuner : IUnknown
{
// Sets and gets the Channel
HRESULT put_Channel(
[in] long lChannel,
[in] long lVideoSubChannel,
[in] long lAudioSubChannel
);
HRESULT get_Channel(
[out] long *plChannel,
[out] long *plVideoSubChannel,
[out] long *plAudioSubChannel
);
// Gets the minimum and maximum channel available
HRESULT ChannelMinMax(
[out] long *lChannelMin,
[out] long *lChannelMax
);
// CountryCode is the same as the international
// long distance telephone dialing prefix
HRESULT put_CountryCode(
[in] long lCountryCode
);
HRESULT get_CountryCode(
[out] long *plCountryCode
);
HRESULT put_TuningSpace(
[in] long lTuningSpace
);
HRESULT get_TuningSpace(
[out] long *plTuningSpace
);
HRESULT Logon(
[in] HANDLE hCurrentUser
);
HRESULT Logout();
// Signal status for current channel
// signal strength == TUNER_NOSIGNAL, or strength value
HRESULT SignalPresent(
[out] long * plSignalStrength // AMTunerSignalStrength
);
// allow multifunction tuner to be switch between modes
HRESULT put_Mode(
[in] AMTunerModeType lMode // AMTunerModeType
);
HRESULT get_Mode(
[out] AMTunerModeType *plMode // AMTunerModeType
);
// retrieve a bitmask of the possible modes
HRESULT GetAvailableModes(
[out] long *plModes // AMTunerModeType
);
// allow IAMTuner clients to receive event notification
HRESULT RegisterNotificationCallBack(
[in] IAMTunerNotification *pNotify,
[in] long lEvents // bitmask from AMTunerEventType enumeration
);
HRESULT UnRegisterNotificationCallBack(
IAMTunerNotification *pNotify
);
};
[
object,
local,
uuid(211A8760-03AC-11d1-8D13-00AA00BD8339),
pointer_default(unique)
]
interface IAMTunerNotification : IUnknown
{
HRESULT OnEvent([in] AMTunerEventType Event);
};
};
</code>
|
|
|
|
|
how can i set different fonts to different
columns in a data grid ?
i need to show regional language data and english data in one datagrid
|
|
|
|
|
how to show autonumbers in a text control fromm a table in the database
|
|
|
|
|
What do you mean? What is the problem, really? The autonumber property only affects how the value of the field is created, not how you read the field.
---
b { font-weight: normal; }
|
|
|
|
|
Hello there,
I am developing a windows service in vb.net. everything is going fine but one thing. My service starts as soon as computer starts(means without any user even login, which i know is normal for service). What i want to achieve is that i want to get a notification when some user login to the system, and great if i get the user logoff notification but it is not necessary. I want to monitor few programs when they are running and they only run when some user is login. So i want to get notification when some user login so that i can start my monitoring of those programs. Some example code is more then welcome!!
Qaiser.
|
|
|
|
|
One thing you might consider, since it sounds like your not concerned about it running if nobody is logged on, is change the account that the service runs under. So instead of having it run under the local system account, have it run in a user account.
If that is not an option because you want to continue monitoring certain events even if nobody is logged on, then (I dont know of any Loggedon or off events) I would start a new thread and start an infinite loop to check what user is logged on. When you get a different name or you dont get a valid name then raise an event.
-Jason
|
|
|
|
|
Hi,
I have made a website using vb.net (visual studio .net 2003) with a MySQL database. I have built, setup and run the web application in my college as a project. Now I want to deploy the web site on the internet. What are the basic steps I need to know to do so. I have tried to copy all the files from the FTP i am using currently to the FTP server of the hosting company but the website doesnt work on the hosting company's server. It is working absolutely fine on my college server. I have also changed the connection string for the MySQL database connection. What am I missing out... what steps need to be taken in order to get my web site up and running on the hosting company's server? Please help... I am in urgent need. Thanks a lot.
Karan
|
|
|
|
|
We're not the best people to ask about that since each hosting company supports different things.
Your best place is to ask the support staff of the hosting company. This my be a stupid thing to ask, but do they support MySQL?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there, the hosting supports MySQL and ASP.Net. They do not provide with the setup of the website. I have already transferred my files and code on thier FTP server. Everytime I run the website from the internet, I get a Runtime Error.
I am a student and I am deploying a website for the first time. There must be some modifications that need to be done before I try to run an application on another hosting server/company.
Please help if possible. I will really appreciate any help.
Karan
|
|
|
|
|
Like I said, the best source of help is the hosting company itself. After all, you're paying them aren't you?
You have to determine what the host requires as far as configuration, .NET Framework requirements, and directory structure. We can't possibly tell you that.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your help Dave. I'll probably get hold of the hosting company and extract as much help as they can provide me. Thanks again.
|
|
|
|
|
Hi
I want to create a desktop (using CreatDesktop API) and then give the user the ability to move some of the running programs in the Default desktop to that newly created desktop.
I can do it by a CreatProcess to run new files in the created desktop. but how can I move the previously running processes to tthe new desktop?
(I am writing my program in VB6 and I still have not found any way to enumerate the handles of processes in vb6 also.)
Thanks.
|
|
|
|
|
If I read the API docs correctly, you can't move a process to another desktop once it's been created and has made a USER32 or GDI function call. The desktop to use must be specified in the Startup parameters structure before CreateProcess is called to start the app.
Only the process itself can change its desktop using SetThreadDesktop.
You can read more about Window Stations and Desktops here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 10:44 Sunday 22nd January, 2006
|
|
|
|