You can use commands under the [Tools] menu to export the current game or all games in the current filter to a text file.
Three text file formats are available: PGN (portable game notation), HTML (for web pages) and LaTeX (a popular typesetting system).
When exporting, you can choose to create a new file, or add the games to an existing file of games exported by ChessDB.
When exporting in HTML or LaTeX format, ChessDB will automatically add a diagram wherever a diagram nag ("D") or a comment that starts with the character "#" appears in the game.
ChessDB allows null (empty) moves to be stored in games, as they can be helpful when annotating games using variations. However, the PGN standard has no null move concept. So if you export ChessDB games with null moves to a PGN file, other PGN-reading software will not be able to read the null moves.
To solve this problem, ChessDB provides an extra option, Convert null moves to comments, when exporting games in PGN format. If you want to create a PGN file that other software can use, turn this option on and variations containing null moves will be converted to comments. However, if you want to create a PGN file that can be imported back into ChessDB later with null moves preserved, leave the option off.
ChessDB can export games to an HTML file. For diagrams to appear, you will need the diagram images (distributed with ChessDB in the directory "bitmaps/") to be in a subdirectory bitmaps/ under the directory the HTML file is in.
ChessDB can export games to a LaTeX file. Games be printed two columns to a page and moves are in figurine algebraic notation.
See the Using LaTeX with ChessDB help page for more information.