Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

creating excel file from query

Explorer ,
Nov 17, 2008 Nov 17, 2008
I'm trying to create a spreadsheet of contact names on the fly using the code attached. I have a few roblems with this though.

I'd like to download the file by clicking a link, do you know how I can do this? Currently it downloads it when you browse to the page.

Also, I have a cfoutput tag in the footer of my page, this gets included in the spreadsheet, do you know how I can eliminate this?

Thankyou
661
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 17, 2008 Nov 17, 2008
"I'd like to download the file by clicking a link, do you know how I can do this? Currently it downloads it when you browse to the page."

Wouldn't one browse to the page by clicking a link? Seems like you've answered your own question.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 17, 2008 Nov 17, 2008
Ah yes of course, sorry todays been hectic, my minds screwed.

Thanks for your reply
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 18, 2008 Nov 18, 2008
Does anyone know if formatting of the excel document is possible?

I would like to use the table header and split the window and free the frame.

Excel> Window> Freeze pane

Thankyou
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 18, 2008 Nov 18, 2008
LATEST
Put this in the <HEAD> you'll have to google for what each of these are, I don't recall them all. I think you are interested in this particularly:
<x:SplitHorizontal>1</x:SplitHorizontal> and/or <x:TopRowBottomPane>1</x:TopRowBottomPane>

<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Actions with Bad Codes</x:Name>
<x:WorksheetOptions>
<x:FitToPage/>
<x:Print>
<x:FitHeight>999</x:FitHeight>
<x:ValidPrinterInfo/>
<x:HorizontalResolution>300</x:HorizontalResolution>
<x:VerticalResolution>300</x:VerticalResolution>
</x:Print>
<x:DoNotDisplayGridlines/>
<x:FreezePanes/>
<x:FrozenNoSplit/>
<x:SplitHorizontal>1</x:SplitHorizontal>
<x:TopRowBottomPane>1</x:TopRowBottomPane>
<x:ActivePane>2</x:ActivePane>
<x:Panes>
<x:Pane>
<x:Number>3</x:Number>
</x:Pane>
<x:Pane>
<x:Number>2</x:Number>
<x:ActiveRow>1</x:ActiveRow>
<x:ActiveCol>1</x:ActiveCol>
</x:Pane>
</x:Panes>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:ProtectStructure>False</x:ProtectStructure>
<x:ProtectWindows>False</x:ProtectWindows>
</x:ExcelWorkbook>
</xml><![endif]-->
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources