473,756 Members | 7,817 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET --> ReportViewer --> 1st Print Job always gets ignored

Cam
Hello,

I am using vb.net 2005 with the report viewer control and the built-in
reports (NOT CRYSTAL REPORTS). I have two datasets, two binding controls and
two data table adapters. One complete set for production data and one
complete set for development data. The report viewer fills a regular form,
which when opened grabs the data for the report (based on certain parameters)
The reports themselves are RDLC files.

When the reports are generated, if I hit the print button on the report
viewer toolbar (I pause my printer to watch the jobs), I see the first job
getting sent to the printer and say 'spooling'. then the job disappears and
nothing prints. If i hit the print button a second time, the job spools and
prints. This happens everytime, with all users and all different types of
printers.

I am stumped, please help! Thanks in advance.

Cam



Aug 24 '06 #1
1 4719
Cam
Follow up From CAM...

Yes, the Print dialog does display and the user hits the OK button.

If after previewing the report, I click on the 'Print Layout' button and
then hit Print, the job does print the first time. If in code (form load), I
do the following:

Me.ReportViewer 1.SetDisplayMod e(DisplayMode.P rintLayout)

(set the print layout in code), it also prints the job the first time.
However, if in code (form load), I do the following;

Me.ReportViewer 1.SetDisplayMod e(DisplayMode.P rintLayout)
Me.ReportViewer 1.SetDisplayMod e(DisplayMode.N ormal)

(set it to print layout and then back to normal), the job again behaves like
before (does not print on the first print send).
Aug 24 '06 #2

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

Similar topics

4
2129
by: edg | last post by:
This works: $b = $a->method1(); $c = $b->method2(); I'd like to get this all on one expression, something like: $c = ${$a->method1()}->method2(); which doesn't work.
1
4090
by: XunLing | last post by:
hi, im using the xml appender for log4j and just found out how to use jdbc appender. Now i get all my system notifications into the database but i want to get only the nessasery user-"actions". Jboss start, quit ... and all other notifications and warnings should be ignored. Does anybody have a good example how to create / define own loglevel? Plz email me or write it here: xun.ling@gmx.de
5
1817
by: john | last post by:
Hi I am devlopeing a data centric intranetsite with data in mysql database I would like your opinion on this architecture Data will be fetched from database by python & converted into xml The XSLT will be stored on the client cache.So only the xml is transferred to client & the xslt transforms it into xhtml & displays it. Will this improve performance or have i gone nuts??
1
2491
by: Chris Botha | last post by:
I'm using ReportViewer in VS2005 to generate local reports, i.e. the report is in the project, not in Report Server, and it works great. Problem is, when the user wants to print, the report has to be exported to PDF and then printed. There is a property on the ReportViewer named ShowPrintButton, that looks kind of promising, however it seems to have no effect, there is no print button on the web page at all. Thanks
5
3727
by: dharmdeep | last post by:
Hi friends, I had implemented client server application in C under VC++ environment. It can handle more than one client. So in this program i want to keep track of clients IP which gets connected to the server and the client which gets disconnected. for this i am using int_ntoa() function. but the problem which i am facing is that the client which gets connected at last overwrites the o/p of inet_ntoa() o/p comes as Client 127.0.0.1...
7
5630
by: bonk | last post by:
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression because the code of the current method is optimized."). This happens alltough the checkbock "optimize code" in the project settings is switched off. My question here is what are possible conditions that would make an assembly be build as optimized...
18
10755
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the following is the result. You don't have permission to access /dev/forms/forms_testing/< on this server.
1
1812
by: Valerie | last post by:
Hello everyone, I am new in PHP-programming but I am learning the basics of it. I've got a script that uploads a picture together with all data from the inputform, to the server and places the pathname into the Mysql. I desperately want to have the uploaded pictures resized in the meantime. Does anyone know how to do this ? Or perhaps adjust the script with the functions, necessary for resizing ? I would appreciate it VERY VERY much !...
0
1562
by: =?Utf-8?B?c3Bhcmtlcg==?= | last post by:
Has anybody had the occasion to to build a VB.NET 2008 application that will manipulate an Excel workbook including the Hyperion Essbase Plugin? I was not sure which forum to post this question in so that is why I have chosen the General. If anybody has any ideas on the "Best" way to execute the "Retrieve" function found on the Essbase plugin for Microsoft Excel located on the xlApp.CommandBars("Worksheet Menu Bar").Controls.Item One...
0
9456
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
9275
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
9873
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
9846
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,...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
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
3
2666
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.