Closed (won't fix)
Project:
Views data export
Version:
7.x-3.0-beta6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2013 at 04:58 UTC
Updated:
6 Dec 2024 at 14:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rickmanelius commentedComment #2
anybodyThese links may help you:
http://sebsauvage.net/wiki/doku.php?id=word_document_generation
http://www.codeproject.com/Articles/7341/Dynamically-generate-a-MS-Word-...
http://stackoverflow.com/questions/13340216/html-generated-microsoft-wor...
I furthermore marked related issues.
I'll write a blog post about my solution (views-data-export-doc-header.tpl.php changes) on my blog http://Julian.Pustkuchen.com and post a link here for reference.
Comment #3
anybodyFinally my blog post about .doc-document formatting for HTML documents exported to .doc can be found here: http://julian.pustkuchen.com/node/722
I've added my results as patch to this issue and I'd suggest to apply them to the project to provide a default formatting and easy & clean change of formats by overriding the header .tpl.php file from the module for individual changes.
For this specific issue you'd simply have to change
"mso-page-orientation: portrait;"to landscape.Please let's discuss to add this default formatting to the great views_data_export.module.
Thanks a lot!
Comment #4
anybodyPS: I'm using that template files in production, it works great and as expected.
Comment #5
anybodyChanged the title of this issue to a more general one because it solves several related issues.
Comment #6
biarr commentedThe patch is working. I'm also using it in production. Thanks
Comment #7
biarr commentedChanging the status
Comment #8
schatzcoop commentedAttempting to apply this patch I get:
Even if I set to Unix line-endings...
Edit: I applied manually but found that there is an errant "\ No newline at end of file" on line 63. The changes below it are part of the same file, views-data-export-doc-header.tpl.php
Comment #9
MatthijsG commentedGet the same error as #8
Manually patching worked, don't added the two /-lines
Comment #10
fakir22 commentedmso-page-orientation: landscape;didn't worked for me so I simply inverted values for size parameter (changedsize: 21cm 29.7cm;forsize: 29.7cm 21cm;) and it seems to work ;)Comment #11
steven jones commentedSorry for the lack of attention to your issue, please accept my apologies.
Drupal 7 is going to be end-of-life'd by the community in approximately 1 month.
As such, I am closing all non-critical looking, non-PHP compatibility issues for Views Data Export to tidy up the issue queues and reduce the noise. You can read about this on #3492246: Close down Drupal 7 issues.
If you feel like this issue has been closed by mistake, please do comment about re-opening it.
If you feel like the ticket is still relevant for the 8.x-1.x version of the module, then please search for a duplicate issue first, and if there really isn't one (and you've looked properly) then change the version on the ticket and re-open.
Thanks to everyone involved in this issue: for reporting it, and moving it along, it is truly appreciated.
The Drupal community wouldn't be what it is today without your involvement and effort, so I'm sorry that we couldn't get this issue resolved. Hopefully we'll work together in a future issue though, and get that one resolved :)