473,881 Members | 1,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing Reports generated from Temporary Tables

1 New Member
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE.

The current method uses a temporary workspace. This workspace uses ODBCDirect which bypasses the JET engine completely. However, these objects are temporary and are destroyed at the end of the function. In order to get the reports working I launch the reports before the object is destroyed. Additionally, I use global temporary tables so the two connections (temp workspace and regular DAO PTQ) can see the table. Now, our issue is that the temp table is destroyed after generating the report. When the user wants to print, Access reruns the report (so it appears). However, now, there are no more temp tables.

The "simplest" workaround would be to get Access to print what is on the print preview. But, it seems that Access has to requery everything rather than use the report it already generated. Is that the way it works?

Has anyone come across this issue before and come up with a workaround?

I appreciate and direction and suggestions you may have to my dilemma. Thanks.
Feb 8 '08 #1
1 1978
puppydogbuddy
1,923 Recognized Expert Top Contributor
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE.

The current method uses a temporary workspace. This workspace uses ODBCDirect which bypasses the JET engine completely. However, these objects are temporary and are destroyed at the end of the function. In order to get the reports working I launch the reports before the object is destroyed. Additionally, I use global temporary tables so the two connections (temp workspace and regular DAO PTQ) can see the table. Now, our issue is that the temp table is destroyed after generating the report. When the user wants to print, Access reruns the report (so it appears). However, now, there are no more temp tables.

The "simplest" workaround would be to get Access to print what is on the print preview. But, it seems that Access has to requery everything rather than use the report it already generated. Is that the way it works?

Has anyone come across this issue before and come up with a workaround?

I appreciate and direction and suggestions you may have to my dilemma. Thanks.
You are using the MakeTable query as the record source of your report, so whenever you print the report, the MakeTable query executes again. If you just want a file copy of the same report, output the report as a pdf file to a designated directory, and that file will be available for future reprinting.

If you don't already have a pdf driver for your printer, you can download a free one at the following link. It installs as a printer driver via windows control panel and shows up on your list of printers to select from when you call the printer dialog. http://www.cutepdf.com/
Feb 9 '08 #2

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

Similar topics

2
1253
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000. Throughout the project I'm working on, I often find I need a temporary table displayed in a report, something that I cannot seem to do. Since temporary tables are so useful, I cannot imagine Crystal Reports wouldn't have a way to get such
3
6921
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
4
4743
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I have created a database consisting of student athletes. †I have now learned how to join two different tables in a query so that I might generate a report. Specifically, student athletes at a community college are required to graduate with an AA or AS degree. †Consequently, various steps are in...
3
10443
by: gudia | last post by:
I want to Programatically generate Access reports in the pdf format using some tool and then email them to people in the same code. Right now I am trying to do this with pdf995 using VBA (emailing is a separate issue, which pdf995 does not addresses). I downloaded pdf995. It controls printing via pdf995.ini file. In the VBA code, I have DoCmd.OpenReport "Report2", acViewNormal. I am having the following problems right now. (a) I do...
2
1332
by: mark | last post by:
I have one page with a series of reports to be printed like :- (bear with me ill try to explain the best i can!) report one - checkbox1 report two - checkbox2 report three - checkbox3 and so on finally a button to process the reports is pressed
3
3559
by: carlor | last post by:
Hi there, Our client has a requirement to print labels from the web site to a local printer. i.e. user logs onto web site and click a print button and the address is printed to a label printer connected to the user's computer. After much searching I think I've come to the conclusion that these are the only possible ways of doing this: 1. Javascript Window.print()
0
1427
by: dkurtz | last post by:
D. Lesandrini published an article some time ago about exporting Access reports as XML, and then updating those XML reports dynamically in ..NET. See->http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnhcvs03/html/vs03g9.asp. I'm not getting it to work. If I use the XML and XSL file as generated by Access, it works OK, but if I generate the XML file myself and try to transform that with the XSL file, I just end up with a...
5
6423
by: dancole42 | last post by:
I want to create a button that will print multiple forms. Each form is a list of various orders, and there are three separate forms: -Standard Orders -Rush Orders -VIP Rush Orders Each is based off its own query. For certain company reasons, each order type (Standard, Rush, VIP
6
4145
by: Josetta | last post by:
Access 2003 I've been experiencing some problems with my "monster" database the last couple of days. I imported all objects into a new database yesterday, which pretty much stopped the crashing problems, but here's something weird: Whenever I copy an object (reports so far), I am able to open it and make changes, but when I try to save it (without closing), it appears to save (message box goes off), but it doesn't. Then, if I try to...
0
9926
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9776
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
10716
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10812
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
7108
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
5780
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3223
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.