473,651 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Export a report to SNP format by vba

Hi NG

I try to export a report, by using the following code - it fails with
errorcode: 2282

DoCmd.OutputTo acOutputReport, "Faktura", acFormatSNP, stinavn & "\" &
strName & ".snp", True

if I write

DoCmd.OutputTo acOutputReport, "Faktura", acFormatRTF, stinavn & "\" &
strName & ".RTF", True

It works perfect.

Any ideas what I can do to make the Acformatsnp to work?

TIA JJ
Oct 7 '08 #1
3 7484
On Tue, 7 Oct 2008 22:17:11 +0200, "Carl Hansen"
<Ca*********@ho tmail.comwrote:

Can you create ANY .snp file, for example when you are previewing a
report and then choose Send Email, and when prompted for a format
choose Snapshot.
If not, you have some installing to do.
Can you repeat the behavior on other computers?

-Tom.
Microsoft Access MVP
>Hi NG

I try to export a report, by using the following code - it fails with
errorcode: 2282

DoCmd.Output To acOutputReport, "Faktura", acFormatSNP, stinavn & "\" &
strName & ".snp", True

if I write

DoCmd.Output To acOutputReport, "Faktura", acFormatRTF, stinavn & "\" &
strName & ".RTF", True

It works perfect.

Any ideas what I can do to make the Acformatsnp to work?

TIA JJ
Oct 8 '08 #2
Hi tom

When I preview a report I can make a snp file by doing: File --Export and
then choose snp in file type

Best regards
Henrik
"Tom van Stiphout" <to************ *@cox.netskrev i en meddelelse
news:lj******** *************** *********@4ax.c om...
On Tue, 7 Oct 2008 22:17:11 +0200, "Carl Hansen"
<Ca*********@ho tmail.comwrote:

Can you create ANY .snp file, for example when you are previewing a
report and then choose Send Email, and when prompted for a format
choose Snapshot.
If not, you have some installing to do.
Can you repeat the behavior on other computers?

-Tom.
Microsoft Access MVP
>>Hi NG

I try to export a report, by using the following code - it fails with
errorcode: 2282

DoCmd.OutputT o acOutputReport, "Faktura", acFormatSNP, stinavn & "\" &
strName & ".snp", True

if I write

DoCmd.OutputT o acOutputReport, "Faktura", acFormatRTF, stinavn & "\" &
strName & ".RTF", True

It works perfect.

Any ideas what I can do to make the Acformatsnp to work?

TIA JJ

Oct 11 '08 #3
Carl Hansen wrote:
Hi tom

When I preview a report I can make a snp file by doing: File -->
Export and then choose snp in file type
What version of Access?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Oct 12 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
11851
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation. I can do this individually for each graph but this does not help me as I need both on the same JPEG. I thought I would try an export the form that contains both but I am having trouble. (My VBA is self taught and a little knowledge is...
7
14358
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to display the graph but it is not possible to send query parameters to an OLE graph on a report (or programatically change any properties of an OLE Graph). However with a Form you do have the ability to change the RowSource of
6
13128
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel spreadsheet. I'm having trouble with my code at the point at which it hits ".ReadRecords" -- the module just runs and runs without generating anything. I've gotten this code to correctly save .rpt files without any data, but not with data, nor have I been...
2
4684
by: PerryC | last post by:
Is there a way to export an MS Access Report to Word/Excel that looks EXACTLY like it appears in Access? When I export to Excel, only certain data appears, titles, headings... all missing. The format is not aligned... When export to Word, all my lines (table lines) are gone, making it hard to read. Thanks. Perry
2
6640
by: jpodesta | last post by:
I am working on a trade processing project for my company. I would like to export a report directly to .csv format. I have looked all over in the groups for a way to do this. Appearently something that would seem to be fairly simple is not. I had mixed success dropping the report into excel but upon export is carried over the field headers that I dont want to appear in the CSV extract. I really dont want to have to use xls. I want to...
0
1964
by: David Valle | last post by:
Hi, i've follow an example that Gabriele G. Ponti wrote on 8/5/2003 about the export of a report made in Crystal Report in PDF format, this: ------------------------------------------------------------------------ This is how I export reports to PDF files: Dim diskOpts As New DiskFileDestinationOptions ' load report m_Report.Load(strReport)
0
1847
by: suicidaltendencies | last post by:
I'm able to view the report, but when I click the button on the webpage that shows the report to export into a different format it gives me an error on Export. Any help would be great I keep getting the following error Logon failed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. ...
0
1760
by: Leonard Danao | last post by:
Anyone have any ideas as to why this is happenning. There are no other versions of Crystal installed aside from the one that came with vs2003 enterprise. the error happens when the btnShowPDF_Click event is triggered private void btnShowPDF_Click(object sender, System.EventArgs e) { string
0
2148
by: Mariana | last post by:
Hello, I am exporting reports in pdf format from .net 2005 . The export is working fine; however the user values of stored procedure parameters does not show in the report. What do I need to do in order to see the parameters value in the report? The report has a report parameter "reportTitle" and i see the value in the report. It has also another 2 stored procedure parameters @BeginDate and @EndDate. The values are entered be the user;...
1
3051
by: ttfitz | last post by:
I have an application developed in Access 2000, to be distributed as an MDE. For those folks without Access, they install the free Access 2007 runtime. For the most part, this seems to be working well. However, when viewing a report in Preview mode, if you right-click and select the "Export" option (I have defined a custom menu which includes the standard "export" option), when using the runtime you immediately get an error, which says,...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.