Results 1 to 4 of 4

Thread: How to Print RDLC without preview

  1. #1
    Join Date
    Nov 2008
    Posts
    109

    How to Print RDLC without preview

    I want to print ms report (*.rdlc) without preview and without create external file! It should view's 100% and must be print's perfectly once I click on the print button. However, the user's wanted the option to either view the report or just printing it without viewing it, especially if they have to print multiple Job's. Is there any way to print rdlc file without preview and create external file?

  2. #2
    Join Date
    Jan 2006
    Posts
    6,878

    Re: How to Print RDLC without preview

    I have created a small app using pretty much and I will provide you those steps that you should also follows, On the File menu, point to New, and then select Project. In the Project Types pane, choose Visual C# or Visual Basic and Windows. In the Templates pane, choose Console Application to create a Microsoft Console application. In the Name box, type the name of the project: PrintLocalReport. In the Location box, enter the directory in which you want to save your project, or click Browse to navigate to it. The project opens with the Code window showing the Program code file.

  3. #3
    Join Date
    Oct 2008
    Posts
    71

    Re: How to Print RDLC without preview

    The Program code file should already be open for editing. If it is not, double-click on the Program.cs or Module1.vb file in the Solution Explorer window.
    You can download the code for your program from the MSDN library, download the code and use it in your application.

    Replace existing code in the Program file with the following code of your programming language choice.

    For Visual C#, use the following code. go here.

  4. #4
    Join Date
    Dec 2008
    Posts
    128

    Re: How to Print RDLC without preview

    Did you copy & paste the code from MSDN as it appears? I ask, because i just used this code and it works perfectly but it only prints when i run it from visual studio. But when i compile the web app and run it from IIS it generates the image but doesn't print and doesn't throw any error. Their code is set up to print to the Image Writer (First line after the Print() declaration).

Similar Threads

  1. Is there any way to print preview in chrome?
    By $kRITIKa$ in forum Technology & Internet
    Replies: 6
    Last Post: 17-06-2011, 09:57 PM
  2. Excel 2010 Print Preview
    By Billie in forum MS Office Support
    Replies: 3
    Last Post: 31-05-2010, 05:26 AM
  3. Replies: 3
    Last Post: 05-12-2009, 01:02 PM
  4. Replies: 8
    Last Post: 09-11-2009, 07:14 AM
  5. Can't print or print preview from IE7
    By Bazoz in forum Vista Help
    Replies: 8
    Last Post: 08-06-2007, 04:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,907,241.55807 seconds with 16 queries