ActiveForm UpdatesActiveForms are a quick way to create a browser-based application and still be able to use all of Delphi's visual components and design-time support. If you have an existing Win32 GUI application and want to move to the web with it, then ActiveForms are certainly an option to consider (although you must be aware of the downsides: it only runs natively inside Internet Explorer, and really requires Win32 as client operating system) and apart from the code signing (security!) issue, which can take some. time to setup, ActiveForms are really a quick solution to put a first version of your app in the browser. Until you want to deploy an updated version, that is, at which time you may find that the client (running Internet Explorer) not always automatically uses the new version of the ActiveForm. In fact, the current way Delphi generated ActiveForm deployment files and Internet Explorer "interact", it would be a miracle if your real-world ActiveForm would be automatically u Pdated Even ONCE AT The Client Side. Fortunately, I've Found An Easy Workaround, But Let's Take A Closer Look At The Cause of this Problem First ...
Before we start looking at the problem, I assume you've all started an ActiveForm with the "include version information" enabled, as well as all other "auto-increment build number" and "auto-increment release number" options inside the Project Options and Deployment options dialogs. If you do not include version information with your ActiveForm, then you do not even need to read the remainder of this little article, as there will be no way where-ever that Internet Explorer on the client will be able to determine that a new version of the ActiveForm exists Which means clients need to stick with the original version (unless you can instruct them to either manually delete either the old one, or download and install the new one -. yeah, right, and maybe Borland will buy Microsoft to fix these miscommunication problems next time) .Anyway, when deploying an ActiveForm, Delphi (and C Builder) generates a number of files. If you do not use .CAB file compression and also do not deploy Any Package s or additional files, then Delphi generates a single .HTM file and a single .OCX files (both with filenames equal to your projectname). The .HTM file will contain a section that identifies the ActiveForm to be loaded, which also includes the version Number, As Follows: