Can anyone suggest some ideas to add a excel table to the print composer which will then be exported as a A3 png while retaining resolution. Attempted pasting in word as an enhanced meta file then saving it as a png > adding to composer, also tried exporting the table as pdf then converting to SVG in Inkscape (which retains resolution / scalability but doesn't render text in columns correctly).
3 Answers
- Save your excel file as CSV file
- go to
Add Vector Layer
in QGIS and navigate to your CSV file and load it - In the print composer, go to
Add attribute table
, as you can see below:
- Select the
Source from Layer Feature
from the window in the right,as shown below:
- You can change the font and formats based on your needs, and here is final output:
UPDATE
In QGIS 2.14.3 there is an extra option (Advanced Customization) that you can change the background color of the header, rows (even OR odd), columns (even OR odd), as you can see in the image below
It will create something close to what you need
-
Thank you, this is a very good solution. It doesn't quite given me the result I need in terms of been able to customize how it looks though,e.g. different font colors for different items within the table etc. I'm also not able to resize it? Its fixed. Added example of table, to original question.– MikeyCommented Jun 22, 2016 at 7:38
-
You can resize it using the cell margin, and you can change the header font as well as the font of items separately. I am using QGIS 2.8.9 Commented Jun 22, 2016 at 7:44
You mention you're using inkscape so you could try flipping your method round rather than doing it all in QGIS. Have you tried exporting the composer to an SVG, open it into inkscape and then import the formatted table as a png?
With the worksheet in Excel you can save to the WEB page where the form will generate a file in HTML format after you push the print composite through HTML frame icon. Tip Select the worksheet and save only the selected area.