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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snapshot printing

Status
Not open for further replies.

PWise

Programmer
Dec 12, 2002
2,633
US
On one system that I am working on I want to print a report to snapshot format but access dose not recognize acformatsnp
or "snapshot format(*.snp)". snapshot viewer is installed some dll must not be registered can anyone help me with this
 
Thanks MrWilly for the good link.
Nevertheless, this does not help me much? I have an access app that exports an invoice (access report) to a snapshot format and fax with winfax via dde when the invoice is over due. At all my other client this worked without any problem. My code for exporting this is DoCmd.OutputTo acOutputReport,"reportname","Snapshot format", pathAndfilename"
I have also used DoCmd.OutputTo acOutputReport,"reportname",acFormatsnp,“pathAndfilename" and
DoCmd.OutputTo acOutputReport,"reportname","Snapshot format (*.snp)", "pathAndfilename" with success.

I was installing my app at a new client and I got this error.
The formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or HTML file are missing from the Windows Registry.
In a97 I got this error
The formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or HTML file are missing from the Windows Registry. Run Setup to reinstall MyAppName or, if you're familiar with the settings in the Registry, try to correct them yourself. For more information on the Registry, click Help.

Help as usual does not help much. I think that this is a problem with a unregistered dll any help will be appreciated.
Thank You Again
 
thanks mrwilly i checked the new link you gave. i dont rhink it is any one of these errors beacuse when i change acformatsnp to acformattxt it works fine
 
I use

DoCmd.SendObject acSendReport, "ReportName", "Snapshot Format (*.SNP)", StrEmailAddresses, , , strSubject, strMessage, False

to send a report in snapshot format via e-mail in Access 97... I would have imagined using "Snapshot Format (*.SNP)" instead of acformatsnp would have worked.

Try going to the debug window (ctrl+g) and typing
? acformattxt <Enter>

That should display the contents of acformattxt (? is short for print). Now open your report and select file save as/export... Note the text for the selection that outputs to text. I suspect it matches the value I had you get from the debug window (it does in Access 97). Now copy the text that is for the snapshot format. Use it instead of acformatsnp. That is how I arrived at &quot;Snapshot Format (*.SNP)&quot; for my sendobject. If that doesn't work, try the sendobject for grins. I'm curious to see your results.
 
All I get is the same silly grin.
docmd.outputto ...,acformatsnp,..
or docmd.sentobject ...,acformat,.. i get the error varible not defined
in the debug window ? acformatsnp i get nothing a empty line.
docmd.outputto ...,acformattxt,..
outputsto a txt file format

in the debug window ? acformattxt
MS-DOS Text (*.txt)
 
From the save as export dialog find the text equivalent to &quot;Snapshot Format (*.SNP)&quot; and use it instead of the constant acformatsnp.
 
Yet another workaround trick

Sendkeys &quot;{DOWN 5}{ENTER}&quot;
DoCmd.OutputTo acOutputReport,&quot;reportname&quot;, _

, &quot;pathAndfilename&quot;
 
Attentum
My Code is usefull for ALL localization of Access
(not only for English)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top