Copy and paste code from Visual Studio or XMLSpy.

K

Kevin Burton

I was wondering if there was a way to copy and paste code from Visual Studio
on to a Power Point presentation. Right now I find my self copying the code
to the clipboard and pasting onto the presentation only to spend a conserable
amount of time reformatting it so it looks like what was in Visual Studio
(with color coding, indentation, etc.) Any suggestions?

Kevin
 
K

Kathy Jacobs

Do you need to be able to edit the code during your presentation? IF not,
you might be better off using a screen clipping tool to grab a shot of the
code in VS and dropping that on the slid. I prefer SnagIt for screen shots,
but know there are other tools out there...

--
Kathy Jacobs, Microsoft MVP OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information at www.onppt.com

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 
J

Jerry Sheehan

Do you need to be able to edit the code during your presentation? IF not,
you might be better off using a screen clipping tool to grab a shot of the
code in VS and dropping that on the slid. I prefer SnagIt for screen shots,
but know there are other tools out there...

--
Kathy Jacobs,  Microsoft MVP  OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information atwww.onppt.com

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived







- Show quoted text -

Hi Kathy,

I suspect a screen-capture utility that gives you only a graphic is
not what you really want. When you copy the text from say XMLSpy, and
you want to retain the color-coding, formatting, etc. when you paste
the text into a slide, there is a Paste Options button that you can
select from that gives you 2 options, either "keep source formatting",
or "use design template formatting" Should you select to keep source
formatting you should get the text exactly as it appears in the text
view of XMLSpy. If you don't see the icon visible in PowerPoint, then
go under Tools\Options, Edit tab and select the radio box to display
this. Maybe that will help you?

I just tried it and it worked like a charm!

Best Regards,
Jerry Sheehan
http://www.altova.com
 
K

Kathy Jacobs

Yes - that will work, but the text that you paste will be the same size it
is in the code window. Which means that anyone looking at your presentation
from any distance won't be able to see it. That is part of why I go with the
screen shot. With SnagIt, I can up the resolution and the size of the screen
shot and get a clear screenshot that is up to 4 times the size of the
original code window.

Another thought: If you do want the actual text of the code and the colors
aren't coming across (even when you change to keep source formatting), it
might be your default printer. I know that having a non-color printer
changes how Excel objects paste in. I wonder if the same thing is going on
here... Try adding the drivers for a color printer and setting that to your
default printer. See if the paste works better that way.

--
Kathy Jacobs, Microsoft MVP OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information at www.onppt.com
or on my blog, geekswithblogs.net/VitaminCH/Default.aspx

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived

Do you need to be able to edit the code during your presentation? IF not,
you might be better off using a screen clipping tool to grab a shot of the
code in VS and dropping that on the slid. I prefer SnagIt for screen
shots,
but know there are other tools out there...

--
Kathy Jacobs, Microsoft MVP OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information atwww.onppt.com

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we
lived







- Show quoted text -

Hi Kathy,

I suspect a screen-capture utility that gives you only a graphic is
not what you really want. When you copy the text from say XMLSpy, and
you want to retain the color-coding, formatting, etc. when you paste
the text into a slide, there is a Paste Options button that you can
select from that gives you 2 options, either "keep source formatting",
or "use design template formatting" Should you select to keep source
formatting you should get the text exactly as it appears in the text
view of XMLSpy. If you don't see the icon visible in PowerPoint, then
go under Tools\Options, Edit tab and select the radio box to display
this. Maybe that will help you?

I just tried it and it worked like a charm!

Best Regards,
Jerry Sheehan
http://www.altova.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top