Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Code from the Microsoft Visual Basic screen

Status
Not open for further replies.

Weebairnes

Programmer
Dec 23, 2003
25
US

I'd like to print out a module. Is there a way to Print Code from the Microsoft Visual Basic screen to a color printer, and maintain the color settings?

(its okay - I don't have high expectations.)
 
Should be File->Print and the you can select the "code" checkbox to get the code or form to get the form. That's how it's done in 6.0. Are you using .NET?

CF
 
I can print out the code, minus the format and colors from the Access XP menu items. That is why I asked.

Late breaking update...

However, I was just informed of a shareware program, Starprint @ which does allow you to print the code. Its worth a look.

Here is the blurb from the website (regarding VBAcodePrint. NB: they also have tools for printing code from other tools, eg. SQL, ASP, etc.)

VBAcodePrint add-in enables you to print the VBA source code in color of your applications across the entire Microsoft® Office 2000 suite of applications: Word, Excel, Outlook, Access, PowerPoint, and FrontPage. Since VBAcodePrint is implemented as an add-in, you can print the source code without leaving the Visual Basic development environment.

VBAcodePrint is designed for everybody using VBA from novices to experts. VBAcodePrint's color coded printouts are ideal for learning Visual Basic, documenting VBA projects, debugging and supporting complex systems developed using VBA, code Inspections, submitting projects to tutors and/or clients.

The output is fully customizable enabling professional looking color coded output to be generated which can be exported to files with Rich Text Format(RTF), HTML and Adobe Portable Document Format (PDF) formats.
 
Ah, so CodingFreak was on the right track: you weren't having a problem printing in colour from VB's IDE, you were having a problem printing in colour from the Office VBA IDE...
 
Sorry if I didn't state my question clearly. When using Access 2000 or XP, the code editing is done in a Microsoft Visual Basic screen. It is from that screen that I want to print out my code. I want the comments and key words to be colored as they are in the screen.

Evidently it is not possible, I can't figure out how to do it. However I did see an application that does do it.
The link I gave was too ambiguous. Sorry. Here is a direct link:
They have applications that will print code for the following software tools.
ASPcodePrint
OLEPrint
SQL7Print
SQL2000Print
VBAcodePrint
VBAcodePrint97
VBcodePrint
VBScodePrint
VS.NETcodePrint
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top