Exporting propeller source code, into a word .DOC report, with colour and forma
m.r.b.
Posts: 36
I would be grateful for some suggestions please.. A little background...
I've been·helping a long-time friend, who·is undertaking·a mature/adult access uni. course, with his final project.
{{having given significant amounts of my time for free, "for·a·few·beers", as a favour!}}
I have developed the embedded part of the project, which forms a small fraction of the overall finished project.
I am providing .DOC documentation for 'software/embedded stuff',·which includes·an appendix section, containing the source code listings.
This documentation will be·cut-and-pasted into the projects' overall·final report at the appropriate section.
I would like to export·the source code from "Propeller tool" into open-office or word, with the following left intact...
* The font colour
* If possible,·the background colour
* The text formatting (indentation etc)
·
I was thinking as an·.RTF or similar file, using the "Parallax" font, for viewing compatability.
I have tried everything from (non exhaustive) from the sublime to the rediculous IE...
*·'copy and paste', with reformating/colouring by hand (not convenient due to combined sourcecode page count,·lots of·pages even @·8pt font)
* 'Screen-dumps, and importing the resulting image files into word'
* 'Printing to / then Ripping from PDF back to .RTF/.DOC'
* Through to printing the source code within propeller tool using exotic 'Virtual .RTF/.DOC printer drivers'
Everything I have tried so-far yields poor results.· I am pulling my hair out!
·
How do I...
"Get·sourcecode as·it appears within "Propeller tool" to appear into a·.DOC document, with formatting and colour retained?"
Regards, M.R.B.
I've been·helping a long-time friend, who·is undertaking·a mature/adult access uni. course, with his final project.
{{having given significant amounts of my time for free, "for·a·few·beers", as a favour!}}
I have developed the embedded part of the project, which forms a small fraction of the overall finished project.
I am providing .DOC documentation for 'software/embedded stuff',·which includes·an appendix section, containing the source code listings.
This documentation will be·cut-and-pasted into the projects' overall·final report at the appropriate section.
I would like to export·the source code from "Propeller tool" into open-office or word, with the following left intact...
* The font colour
* If possible,·the background colour
* The text formatting (indentation etc)
·
I was thinking as an·.RTF or similar file, using the "Parallax" font, for viewing compatability.
I have tried everything from (non exhaustive) from the sublime to the rediculous IE...
*·'copy and paste', with reformating/colouring by hand (not convenient due to combined sourcecode page count,·lots of·pages even @·8pt font)
* 'Screen-dumps, and importing the resulting image files into word'
* 'Printing to / then Ripping from PDF back to .RTF/.DOC'
* Through to printing the source code within propeller tool using exotic 'Virtual .RTF/.DOC printer drivers'
Everything I have tried so-far yields poor results.· I am pulling my hair out!
·
How do I...
"Get·sourcecode as·it appears within "Propeller tool" to appear into a·.DOC document, with formatting and colour retained?"
Regards, M.R.B.
Comments
If you hold the shift key down, you get a nice square screen capture cut.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
I Just printed to Adobe Acrobat..came out great, everything intact.
Copying/Pasting that data into a word doc provided everything intact except the background coloring. I've been using word for a number of years and I don't think I've ever seen the background different colors across an area that wasn't filled with text.
Your best bet is a screen cap like OBC said or submitting a PDF.
Rick
Hey, that's cool! I've been looking around for a good sub-screenshot tool. I've tried MS Office OneNote, but it only seems to work on one of my computers. Thanks for the link. I especially like how you don't need to install anything. [noparse]:)[/noparse]
Print to PDF, with your favorite PDF tool. I use PDF Creator.
Download Inkscape.
Open PDF with Inkscape. You choose your page to open, as this is a graphics program.
At this point, you will have one page of your PDF, in the tool, where you can add markups, if you want to.
Save as enhanced meta file. (*.emf)
Drag and drop that file into word, for a resizable vector image of your source code + markups.
[noparse][[/noparse]sample .emf file and .doc file attached]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Safety Tip: Life is as good as YOU think it is!
Thanks...
The route via PDF then metafile does what I was after!