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?
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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.