SNP file format
{{Infobox file format
| name = Snapshot File
| icon =
| extension = {{mono|.snp}}
| mime =
| owner = Microsoft
| type code =
| genre = Access report output, multi-page, precise
| containerfor = EMF (contained pages)
| containedby = CAB (compression wrapper)
| extended from =
| extended to =
}}
The SNP file format was used by Microsoft Access to store Report Snapshots in a single file which can be viewed and printed by the Microsoft Snapshot Viewer, a Windows program available free of charge from Microsoft that allows report output to be viewed without requiring Access. Support for the format was discontinued in Access 2010 and later versions; Access reports can be exported in PDF/XPS and Excel formats viewable on many platforms.{{cite web |url=https://www.microsoft.com/en-us/microsoft-365/blog/2010/01/09/access-2010-deprecated-features-and-components/ |title=Access 2010 deprecated features and components|website=Microsoft 365 Blog|date= 9 January 2010 |author=The Access Team |access-date= 29 May 2019}}
SNP files are based on the Microsoft Compound File Binary Format (CFBF),{{cite web | access-date = 2006-05-22 | url = http://www.aafassociation.org/html/specs/aafcontainerspec-v1.0.1.pdf | title = Advanced Authoring Format Low-Level Container Specification | work = Microsoft Structured Storage version 3 specification (PDF) |archive-url = https://web.archive.org/web/20060507063557/http://www.aafassociation.org/html/specs/aafcontainerspec-v1.0.1.pdf |archive-date = 2006-05-07}} which is also the basis for the Advanced Authoring Format (AAF). CFBF is a reasonably simple container format which can store multiple files, directories and so on.{{cite web
| access-date = 2006-05-22 | url = http://sc.openoffice.org/compdocfileformat.pdf | title = Microsoft Compound Document File Format | work = OpenOffice.org CFBF description}} For SNP files, Microsoft Access uses CFBF to store each page as a separate Enhanced Metafile (EMF)-like format containing all of the graphics commands required to reproduce the page.{{cite web | access-date = 2008-09-27 | url = http://social.msdn.microsoft.com/Forums/en-US/os_binaryfile/thread/858f2a6e-d13b-4034-a841-4c53d4063dfc | title = Is Microsoft Access Snapshot considered EMF? | work = MSDN Forum discussion of SNP file format}}
The last CFBF record in an SNP file is a 'HEADER' file, which primarily contains a DEVMODE structure.{{cite web |url=https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/ns-wingdi-_devicemodea |title=The DEVMODE data structure |website=Microsoft Dev Center|date=5 December 2018 }} Data from this structure is used to render the SNP file in Microsoft Snapshot Viewer, in conjunction with the default printer selected.
As CFBF files are not compressed, Microsoft's CAB format is used to reduce the size of the CFBF, producing a file which may be only a few kilobytes in size for each page of text and simple graphics—lines, boxes, etc.