473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

OutputTo: Report to Excel gives "The format in which you are attempting..." error.

OS: Windows XP SP3
Office 2007 Enterprise with SP2 (12.0.6557.50001) SP2 MSO(12.0.6544.5001)

When using DoCmd.OutputTo and attempting to output a report to Excel, I get the following error:

The format to which you are attempting to output the current object is not available.

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputReport, strSource, acFormatXLSX, , False
where strSource is the name of the report.

Researching the error seems to indicate that outputting a report to Excel will only work if SP2 is installed, but I do have SP2 installed.
Mar 8 '12 #1
2 6082
TheSmileyCoder
2,322 Expert Mod 2GB
Do you have any fields in your report that might not be suitable for export to excel?

I have not myself used the export function much in 2003 (Since it cuts off memo fields longer then 255 chars), so its just a guess.
Mar 8 '12 #2
Stewart Ross
2,545 Expert Mod 2GB
From a check of MSDN it seems you've found a known issue with A2007 (and 2010 - just tested it myself and got same problem). Only answer appears to be to specify acFormatXLS instead of acFormatXLSX. Staggering, really, that acFormatXLSX is not valid for A2007/2010!

You could try exporting the underlying query via the DoCmd.TransferSpreadsheet method instead. Otherwise you are stuck with xls format and therefore 65k rows maximum. Makes no sense at all, does it?

-Stewart
Mar 8 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Li Daobing | last post by:
Hello, Does anyone know what's the meaning of Dutch in "The Zen of Python"? Thanks in advance Li Daobing The Zen of Python, by Tim Peters
5
by: Michelle Kinsey-Clinton | last post by:
Hello, I am writing an ASP app which is giving me some very frustrating errors. They appear intermittently, no real pattern to them, and often go away if you reload, or back up a few pages and...
2
by: Matt Suther | last post by:
Does it matter if I use "The C Programming Language" with Windows XP? I've gotten some of the scripts from it to work, but some don't. Could this be an issue with Windows? Or an issue with the...
0
by: Dino Hadzic | last post by:
Hallo csharp'ers I am trying to call a function on a COM (dll) object from managed c# code, which will send data to another node using an already existing bluetooth connection. However, I get a...
1
by: Abhijeet Nevaskar via .NET 247 | last post by:
Hi , I have very serious problem about printing and i have almost searched the printing section for simillar kind of problem.PrintPreview dialog shows preview of few pages quite well and after...
12
by: Chad | last post by:
On page 180 from the 2nd edition of "The C Programming Language" by Kernighan and Richtie, they use the following: #define NAME_MAX 14 typedef struct { long ino; char name; } Dirent;
19
by: Neil Cerutti | last post by:
Where can I find documentation of what Python accepts as the filename argument to the builtin function file? As an example, I'm aware (through osmosis?) that I can use '/' as a directory...
0
by: =?Utf-8?B?R2VvcmdlIFNodWk=?= | last post by:
I have a folder structure such like this. A ---A1 -----a1.aspx ---A2 A1 and A2 are the subfolder of A. And under the A1 folder, it contains one aspx file named a1.aspx. I set the IIS virtual...
3
by: Learning.Net | last post by:
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are...
3
by: Dave | last post by:
http://snipr.com/UltimateHTML
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...

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.