Hi all,
I'm working on a small website for a foundation I work for. In this website we want to administrate forms, which are input for our invoices. So far I've created a form with CCK fields and some Views. This all works fine and meets our requirements. Only thing I came along was the formatting of a form. Does anyone by any chance know how I can adjust the formatting of this form?
Furthermore, we want the possibilty to export the information from a node (e.g. name, address, postal code) to Excel. But not as a plain list (which can be done with Views), but with formatting so it meets our current invoices. For instance: the field with fieldname 'name' has to be put in field A1 in Excel. Does anyone have an idea how to achieve this? Import to say is that I'm not a technical person. Would be great if it could be achieve with a module or a 'simple' workaround ;)
Regards,
Jeffrey
Comments
Possible Indeed
One little trick:
Create an HTML file
All the CSS styles should be inline
Rename the file as xls
Open in Excel, press 'Yes' to overcome file format warning.
You get your file rendered with inherited html formating, including row and font colors.
I have raised such a request
I have raised such a request here.
#721094: Theme exported Excel based on table-highlighter styles
Just saw your post, since
Just saw your post, since I've been working on some other things for a while..
I don't really understand what you mean. I can try to create a HTML that looks like our invoice and rename it to .xls. But how can I import the data from a single node into that HTML / XLS file?
I've made a module this week
I've made a module this week that allows me to:
1. Select a content type in a dropdown
2. The system shows me all fields of that dropdown
3. Press export
4. The system generates a Comma seperated string of all this data and offers the .csv file for download to the user
I guess you are looking for something similar here. You'll need to have basic knowledge of how to make a module in drupal in order to make something like this i'm afraid.
Have you looked at the stuff that exists allready? Views Bonus Pack offers exportation in different formats using the 'feed'. Check it out and get back to me :)
Sounds like a good module. Is
Sounds like a good module. Is it also possible to create an XLS with it? If so, it sounds about right..
I've tried the Views Excel Export module, but unfortunatelly I'm not getting anywhere now (see http://drupal.org/node/778588). In the past I was able to create a Excel file, just by making a new feed. For some reason it's working different on my current project (all data is placed in one cell, instead of seperated)..
shouldn't be a problem to
shouldn't be a problem to deliver it in an XLS file. I don't think you can choose what cells take what kind of information.
maybe you should generate your data surrounded with a table and then put it in a .xls file.. maybe then it works.. don't know..
this is my code, probably not the best way (new to drupal module development) but it teached me alot of stuff.