SNP File Format

SNP File Format

Infobox file format
name = Snapshot File
icon =
extension = .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 is used by Microsoft Access to store Report Snapshots in a single file which can be viewed and printed by the Microsoft [http://www.microsoft.com/downloads/details.aspx?FamilyID=b73df33f-6d74-423d-8274-8b7e6313edfb&DisplayLang=en Snapshot Viewer] , available as a free download from Microsoft (runs on Windows only). This allows report output to be exported and viewed on Windows computers which do not have Microsoft Access installed.

File format

SNP files are based on the Microsoft Compound File Binary Format (CFBF), which is also the basis for the Advanced Authoring Format (AAF) [http://www.aafassociation.org] . CFBF is a reasonably simple container format which can store multiple files, directories and so on. For SNP files, 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. Since CFBF files are not compressed, Microsoft's CAB format is used to reduce the size of the CFBF, resulting in a compact file format which may be only a few kilobytes in size for each page of text and simple graphics - lines, boxes, etc.

Working with the pages of an SNP file programmatically involves the following steps:

# Extract contents of SNP file using CAB decompression routines (such as the Windows API "SetupDecompressOrCopyFile" from the "SetupAPI" library)
# Open the resulting file "_AccRpt_.snp" as a CFBF file
# Enumerate the files in the CFBF to find the EMF files for each page
# Extract the EMF file(s) from the CFBF for the desired page(s)

The resultant EMF files are suitable for display or import in a number of graphics programs, can be added to Word documents, Powerpoint presentations, etc. This is useful especially because there is limited or no support for SNP files in most places where EMF files "can" be used.

The above can be implemented in Visual Basic for Applications, which gives Access developers the ability to create custom report interfaces by loading the EMF files into Image objects and so on.

Disclaimer & license

The investigation of the SNP file format which lead to the above information was conducted with information and tools which are freely available online. The author therefore believes that the above does not represent any breach of copyright or infringement on the intellectual property of any person or organization. As such the Author explicitly agrees to license this article under the .

Licensing information for the SNP [http://www.microsoft.com] , CAB [http://www.microsoft.com] and AAF [http://www.aafassociation.org] are probably available from their respective creators/owners.

References

The following references relate to the Compound File Binary Format format:
* cite web
accessdate = 2006-05-22
format = PDF
url = http://sc.openoffice.org/compdocfileformat.pdf
title = Microsoft Compound Document File Format
work = OpenOffice.org CFBF description

* cite web
accessdate = 2006-05-22
format = PDF
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)

The following reference relates to the EMF-like nature of the SNP File Format:
* cite web
accessdate = 2008-09-27
format = HTML
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

ee also

* Advanced Authoring Format (AAF)
* Cabinet (file format)
* Compound File Binary Format (CFBF)

External links

* Microsoft [http://www.microsoft.com/downloads/details.aspx?FamilyID=b73df33f-6d74-423d-8274-8b7e6313edfb&DisplayLang=en Snapshot Viewer]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • SNP — may refer to:Biochemistry* Single nucleotide polymorphism, a DNA sequence variation * Sodium nitroprusside, a peripheral vasodilatorPolitics* Scottish National Party, a political party campaigning for Scottish independence * Seychelles National… …   Wikipedia

  • SNP — Single Nucleotide Polymorphisms (Medical » Human Genome) Single Nucleotide Polymorphism (Medical » Oncology) Single Nucleotide Polymorphism (Medical » Human Genome) **** China Petroleum & Chemical (Business » NYSE Symbols) *** Scottish National… …   Abbreviations dictionary

  • List of file formats — This is an incomplete list, which may never be able to satisfy particular standards for completeness. You can help by expanding it with reliably sourced entries. See also: List of file formats (alphabetical) This is a list of file formats… …   Wikipedia

  • Touchstone File — A Touchstone file was originally a proprietary file format for the eponymous frequency domain linear circuit simulator [ [http://www.microwaves101.com/encyclopedia/historyCAD.cfm#touchstone History of EEsof and Touchstone at Microwaves 101] ]… …   Wikipedia

  • Advanced Authoring Format — The Advanced Authoring Format (AAF) is a professional file interchange format designed for the video post production and authoring environment. AAF was created to help address the problem of multi vendor, cross platform interoperability for… …   Wikipedia

  • Список расширений имени файла/S — / * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Примечание: Поскольку расширение имени файла может быть любым, представленный список не является полным …   Википедия

  • Liste der Dateiendungen/S — In dieser Liste sind übliche Dateinamenserweiterungen aufgelistet, die in einigen Betriebssystemen (wie zum Beispiel Microsoft Windows) zur Unterscheidung von Dateiformaten verwendet werden. In anderen Betriebssystemen erfolgt die… …   Deutsch Wikipedia

  • dbSNP — Content Description Single Nucleotide Polymorphism Database Organism(s) all …   Wikipedia

  • Chemical biology — is a scientific discipline spanning the fields of chemistry and biology that involves the application of chemical techniques and tools, often compounds produced through synthetic chemistry, to the study and manipulation of biological systems.… …   Wikipedia

  • United Kingdom — Infobox Country conventional long name = United Kingdom of Great Britain and Northern Ireland common name = the United Kingdom symbol type = Royal coat of arms map caption = map caption |countryprefix=the |region=on the European continent… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”