Shop OBEX P1 Docs P2 Docs Learn Events
Exporting propeller source code, into a word .DOC report, with colour and forma — Parallax Forums

Exporting propeller source code, into a word .DOC report, with colour and forma

m.r.b.m.r.b. Posts: 36
edited 2009-04-26 13:58 in Propeller 1
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.·cry.gif 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

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-04-25 17:34
    I've used tool: www.bhelpuri.net/Snippy/SnippyDownload.htm

    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.
  • CassLanCassLan Posts: 586
    edited 2009-04-25 17:42
    m.r.b.,

    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
  • SRLMSRLM Posts: 5,045
    edited 2009-04-25 18:39
    @OBC

    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]
  • potatoheadpotatohead Posts: 10,261
    edited 2009-04-25 20:13
    I just found a nice path.

    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!
  • m.r.b.m.r.b. Posts: 36
    edited 2009-04-26 13:58
    @potatohead,

    Thanks...
    The route via PDF then metafile does what I was after!
Sign In or Register to comment.