It's not just you...

However, the following code is a prototype custom tag to place an excel XP
web component in a web page...Enjoy.


<!--- code starts here --->

<cfparam name="attributes.author" default="Steve Drucker">
<cfparam name="attributes.qdata">
<cfparam name="attributes.lcolumns">

<cfsavecontent variable="queryxml"><cfoutput
query="attributes.qdata"><Row><cfloop list="#attributes.lcolumns#"
index="thiscol"><cfset thedata =
evaluate("attributes.qdata.#thiscol#")><Cell><Data <cfif
isnumeric(thedata)>ss:Type="Number"<cfelse>ss:Type="String"</cfif>>#variable
s.thedata#</Data></Cell></cfloop></Row></cfoutput></cfsavecontent>
<cfset queryxml = htmleditformat(queryxml)>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40";>

<head>
        <title>Untitled</title>
</head>

<body>

<div id="Book1_10875" align=center x:publishsource="Excel"><object
 id="Book1_10875_Spreadsheet"
 classid="CLSID:0002E551-0000-0000-C000-000000000046">
 <param name=DisplayTitleBar value=false>
 <param name=Autofit value=true>
 <param name=DataType value=XMLData>
 <param name=XMLData
 value="&lt;?xml version=&quot;1.0&quot;?&gt;&#13;&#10;&lt;Workbook
xmlns=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot;&#13;&#10;
xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot;&#13;&#10;
xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot;&#13;&#10;
xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot;&#13;&#10;
xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;&#13;&#10;
&lt;DocumentProperties
xmlns=&quot;urn:schemas-microsoft-com:office:office&quot;&gt;&#13;&#10;
&lt;Author&gt;Fig Leaf Software&lt;/Author&gt;&#13;&#10;
&lt;Created&gt;2002-09-28T12:37:05Z&lt;/Created&gt;&#13;&#10;
&lt;Company&gt;Personal&lt;/Company&gt;&#13;&#10;
&lt;Version&gt;10.4219&lt;/Version&gt;&#13;&#10;
&lt;/DocumentProperties&gt;&#13;&#10; &lt;OfficeDocumentSettings
xmlns=&quot;urn:schemas-microsoft-com:office:office&quot;&gt;&#13;&#10;
&lt;DownloadComponents/&gt;&#13;&#10;  &lt;LocationOfComponents
HRef=&quot;file:///\\&quot;/&gt;&#13;&#10;
&lt;/OfficeDocumentSettings&gt;&#13;&#10; &lt;ExcelWorkbook
xmlns=&quot;urn:schemas-microsoft-com:office:excel&quot;&gt;&#13;&#10;
&lt;PublishObjects&gt;&#13;&#10;   &lt;PublishObject&gt;&#13;&#10;
&lt;Id&gt;10875&lt;/Id&gt;&#13;&#10;
&lt;DivID&gt;Book1_10875&lt;/DivID&gt;&#13;&#10;
&lt;SourceType&gt;SourceWorkbook&lt;/SourceType&gt;&#13;&#10;
&lt;HtmlType&gt;HtmlCalc&lt;/HtmlType&gt;&#13;&#10;    &lt;Location
x:HRef=&quot;C:\WINNT\Profiles\sdrucker\Desktop\Book1.htm&quot;/&gt;&#13;&#1
0;   &lt;/PublishObject&gt;&#13;&#10;  &lt;/PublishObjects&gt;&#13;&#10;
&lt;WindowHeight&gt;9855&lt;/WindowHeight&gt;&#13;&#10;
&lt;WindowWidth&gt;11340&lt;/WindowWidth&gt;&#13;&#10;
&lt;WindowTopX&gt;480&lt;/WindowTopX&gt;&#13;&#10;
&lt;WindowTopY&gt;15&lt;/WindowTopY&gt;&#13;&#10;
&lt;ProtectStructure&gt;False&lt;/ProtectStructure&gt;&#13;&#10;
&lt;ProtectWindows&gt;False&lt;/ProtectWindows&gt;&#13;&#10;
&lt;/ExcelWorkbook&gt;&#13;&#10; &lt;Styles&gt;&#13;&#10;  &lt;Style
ss:ID=&quot;Default&quot; ss:Name=&quot;Normal&quot;&gt;&#13;&#10;
&lt;Alignment ss:Vertical=&quot;Bottom&quot;/&gt;&#13;&#10;
&lt;Borders/&gt;&#13;&#10;   &lt;Font/&gt;&#13;&#10;
&lt;Interior/&gt;&#13;&#10;   &lt;NumberFormat/&gt;&#13;&#10;
&lt;Protection/&gt;&#13;&#10;  &lt;/Style&gt;&#13;&#10;
&lt;/Styles&gt;&#13;&#10; &lt;Worksheet
ss:Name=&quot;Sheet1&quot;&gt;&#13;&#10;  &lt;Table
ss:ExpandedColumnCount=&quot;<cfoutput>#listlen(attributes.lcolumns)#</cfout
put>&quot;
ss:ExpandedRowCount=&quot;<cfoutput>#attributes.qdata.recordcount#</cfoutput
>&quot; <cfoutput>x:FullColumns=&quot;1&quot;</cfoutput>&#13;&#10;
x:FullRows=&quot;1&quot;&gt;&#13;&#10; <CFOUTPUT>#queryxml# </CFOUTPUT>
&lt;/Table&gt;&#13;&#10;  &lt;WorksheetOptions
xmlns=&quot;urn:schemas-microsoft-com:office:excel&quot;&gt;&#13;&#10;
&lt;ProtectObjects&gt;False&lt;/ProtectObjects&gt;&#13;&#10;
&lt;ProtectScenarios&gt;False&lt;/ProtectScenarios&gt;&#13;&#10;
&lt;/WorksheetOptions&gt;&#13;&#10; &lt;/Worksheet&gt;&#13;&#10;
&lt;Worksheet ss:Name=&quot;Sheet2&quot;&gt;&#13;&#10;  &lt;WorksheetOptions
xmlns=&quot;urn:schemas-microsoft-com:office:excel&quot;&gt;&#13;&#10;
&lt;TopRowVisible&gt;0&lt;/TopRowVisible&gt;&#13;&#10;
&lt;LeftColumnVisible&gt;0&lt;/LeftColumnVisible&gt;&#13;&#10;
&lt;ProtectObjects&gt;False&lt;/ProtectObjects&gt;&#13;&#10;
&lt;ProtectScenarios&gt;False&lt;/ProtectScenarios&gt;&#13;&#10;
&lt;/WorksheetOptions&gt;&#13;&#10; &lt;/Worksheet&gt;&#13;&#10;
&lt;Worksheet ss:Name=&quot;Sheet3&quot;&gt;&#13;&#10;  &lt;WorksheetOptions
xmlns=&quot;urn:schemas-microsoft-com:office:excel&quot;&gt;&#13;&#10;
&lt;TopRowVisible&gt;0&lt;/TopRowVisible&gt;&#13;&#10;
&lt;LeftColumnVisible&gt;0&lt;/LeftColumnVisible&gt;&#13;&#10;
&lt;ProtectObjects&gt;False&lt;/ProtectObjects&gt;&#13;&#10;
&lt;ProtectScenarios&gt;False&lt;/ProtectScenarios&gt;&#13;&#10;
&lt;/WorksheetOptions&gt;&#13;&#10;
&lt;/Worksheet&gt;&#13;&#10;&lt;/Workbook&gt;&#13;&#10;">
 <p style='margin-top:100;font-family:Arial;font-size:8.0pt'>To use this Web
 page interactively, you must have Microsoft(r) Internet Explorer 4.01
Service
 Pack 1 (SP1) or later and the Microsoft Office XP Web Components.</p>
 <a href="file:///\\files\owc\setup.exe">Click here to install the Office XP
 Web Components.</a>
 <p style='margin-top:100;font-family:Arial;font-size:8.0pt'>See the <a
 
href="http://office.microsoft.com/office/redirect/10/MSOWCPub.asp?HelpLCID=1
033">Microsoft
 Office Web site</a> for more information.</p>
</object></div>

</body>
</html>



> -----Original Message-----
> From: Brook Davies [mailto:brook@;maracasmedia.com]
> Sent: Tuesday, October 22, 2002 2:26 PM
> To: CF-Talk
> Subject: RE: CF to excel formatting questions
> 
> Is it just me or does CFGRID actually suck?
> 
> I just did a search on google for ""Microsoft Office web components", the
> results are scary.
> http://www.google.ca/search?hl=en&ie=UTF-8&oe=UTF-
> 8&q=%22Microsoft+Office+we
> b+components%22&meta=
> 
> -Brook
> 
> At 02:07 PM 22/10/02 -0400, you wrote:
> >If all of your users have Excel, then you might look into using the
> >Microsoft Office web components.  Web components allow you to embed an
> >activeX excel control on a web page -- inheriting the basic Excel
> >functionality.  It's really the ultimate CFGRID replacement.  Information
> >can be passed to the control as XML.
> >
> >Regards,
> >Steve Drucker
> >CEO
> >Fig Leaf Software
> >www.figleaf.com
> >
> > > -----Original Message-----
> > > From: Janine Jakim [mailto:jjakim@;albemarle.org]
> > > Sent: Tuesday, October 22, 2002 11:14 AM
> > > To: CF-Talk
> > > Subject: CF to excel formatting questions
> > >
> > > I'm using the basic call to excel (as explained by BF in his book)
> because
> > > I
> > > do know that all my users have excel.
> > > My questions:
> > > 1.  Can you add an excel toolbar-  I want the users to be able to sort
> the
> > > information on any of the columns.
> > > 2.  Is there any way to get it so that the headings can wrap.  Some of
> my
> > > headings are long so instead of making a long stretchy heading.
> > > Thanks in advance for any help.
> > > J
> > >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to