Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Internet/WebSnap/Page Module Wizard    [ Add a report in this area ]  
Report #:  293   Status: Closed
WebSnap Templates won't work with script in them
Project:  Delphi Build #:  6.240
Version:    6.0 Submitted By:   Nick Hodges
Report Type:  Basic functionality failure Date Reported:  3/8/2002 10:21:34 PM
Severity:    Commonly encountered problem Last Updated: 4/5/2007 10:38:49 PM
Platform:    All versions Internal Tracking #:  
Resolution: Fixed (Resolution Comments) Resolved in Build: : 11.0.2627.5503
Duplicate of:  None
Voting and Rating
Overall Rating: (9 Total Ratings)
2.89 out of 5
Total Votes: None
Description
When I use

C:\Program Files\Borland\Delphi6\Demos\WebSnap\ProducerTemplates\DclDemoTemplate.dpk

to add a custom HTML template, the New Page Wizard won't let me use it.
Steps to Reproduce:
1.  Create a file MYHTML.HTML that has this in it --


<html>
<head>
<title>
<%= Page.Title %>
</title>
</head>
<body>


<#STYLES><#WARNINGS><#SERVERSCRIPT>
</body>
</html>


2. Open C:\Program Files\Borland\Delphi6\Demos\WebSnap\ProducerTemplates\DclDemoTemplate.dpk
3.  Use the Project Manager to open Templates.RC
4.  Add this to the RC file

MYHTML HTML <filepath>\MYHTML.HTML

[SysOpEdited: changed MYHTML..HTM into MYHTML.HTML]

5.  Compile and install DclTDemoTemplate.DPK
6.  Run the New WebSnap Application Wizard
7.  Press the Page Options Button
8.  Use the Template Drop down to select MyHTML
9.  Press Ok
10.  Get this error --

---------------------------
Error
---------------------------
Format '% ' invalid or incompatible with argument.
---------------------------
OK  
---------------------------


Workarounds
None
Attachment
FM00293A.zip
Comments

Fernando Madruga at 4/4/2007 5:05:44 AM -
Even after fixing a minor typo in the steps, I cannot reproduce this bug in Delphi 2007. After making the changes indicated, compiling and installing the package, there is no option showing as can be seen in attached FM00293A.PNG. Not even after restarting the IDE. Considering this report is 4 days short of 5 years old with no further feedback, I suggest Close->Cannot Reproduce.

Server Response from: ETNACODE01