.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

printing 20'' X 6'' report in a regular inkjet printer

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :ASP.Net

Dear Friends

how do I print  20''  X 6'' report in a regular inkjet  printer.

I know I  need to feed the 6'' side to the printer but what should be the printer settings ?

should I design each of the text field in "writingMode=tb-rl"..... when i do this I am facing problems with alignment of adjacent fields...they seem to get displayed in different parts of the report

also i have about 50 textboxes and 2 tables  in the report.

Kindly help

View Complete Post

More Related Resource Links

Printing crystal report from webservice



I am trying to print crystal repot directly from a C# application, which is calling webservice. I am able to display report in crystalreportviewer by passing the webservice call to datasource. However, is there anyway, I can print directly without showing the report?

Alternatively, I was trying return ReportDocument object from webservice, which would solve my problem, but I was unable to return the ReportDocument because of serialization issue. Is it even possible? Thank you


Report printing problem(ssrs 2005)

HI   i have a SSRS 2005 report with width as 32 inches i have a requirement to print the report in a3 landscape  but when i print the report it comes in 3 page width   is there any way to auto scale the report into a3 size without affecting the view in the report viewer   Thanks varun kumar

Printing Landscape Report using the Print Control of the ASP.NET Report Viewer

I am using the ASP.NET Report Viewer 2010 web control in remote processing mode connected to a SQL Server Reporting Services 2008 R2 report server in Native Mode. I am viewing the report in IE8 and the print control within the report viewer is available. According to "Printing Reports from a Browser Using the Print Control" at http://msdn.microsoft.com/en-us/library/ms159237.aspx  "The Print dialog box and the default printer settings for width, height, and page orientation are determined by the report definition." In SQL Server Business Intelligence Development Studio I am using the “Report Properties” window accessed from the “Report” menu to set the Orientation to “Landscape”, the paper size to “Letter”, the Width to “11in”, and the Height to “8.5in” in the report definition. When viewing the report using the ASP.NET Report Viewer 2010 in IE8 and exportint to PDF, the report renders correctly in landscape orientation and the size both on screen and printed is as defined in the report definition. However, if I print it directly from the ASP.NET Report Viewer using the Print Control the print preview shows the report correctly in landscape orientation and page size, but the resulting printout is in portrait orientation and skewed or cropped.  If I go into the properti

Printing from ASP.NET to a network printer

I need to send documents to a network printer (\myserver\myprinter). I'm using the System.Printing classes to print, and it works fine when it's from a Windows Service, but from an ASP.NET app, it's only able to print to local printers, not network printers. The error I'm getting is "Printer Name is not valid" This is what I'm using to get the printer name: public string PrinterName{   using (LocalPrintServer server = new LocalPrintServer())   return server.GetPrintQueue(@"\\myserver\myprinter");} It works fine if I print to \myserver\myprinter from Notepad directly, just not from code.  I'm on .NET 4.0/VS2010 and using ASP.NET Development Server.

Printing to a Zebra label printer 105SL


I'm trying to print to a zebra printer ( label printer ) thru' ASP net, using


 but I get nothing printed.Frown

The same ZPL/text works fine with window apps using: SerialPort Class 

Any help would really be appreciated. Thank you.

SSRS Report printing blank first page




I have a pretty basic SSRS report that has a table header, body (with a table), and table footer.  When I view the report in normal layout,all is well.  However, when I switch to print layout only the table header and table footer are displayed on the first page.  I don't see any of my table data until page two.  So, this is adding an additional page to the beginning of the report and it's make a 17 page report 18 pages.  And because I am including the page numbers on the report, this is noticeable to the users of the report obviously.  Any feedback on things I could do or check to remove this blank page would be greatly appreciated. 



Send report to printer from code-behind...



I would like to create a print button to send a .rdlc report to the users printer. Since i'm not using report viewer to view my reports using it's controls is not an alternative.

I have a button that generates a .pdf file from the report, and now i would like to make a similar button, but to print the report.

Can anyone help me?

Font/letter spacing issue when printing from SSRS 2008 report page


We are developing reports in SSRS 2008.  When printing from the SSRS report page, we are seeing that that some text is "clumping" together or spaced oddly. I have tried a variety of printers so it's not printer-specific. If you export from the SSRS page to PDF or to Word and then print, everything prints as expected.

Nothing is as good as real text/names/data, but to reproduce, simply create several text boxes with...

I used several common fonts...
Arial, 10 pt (SSRS 2008 default)
Times New Roman, 12 pt (Office 2003 default)
Calibri, 11 pt (Office 2007 default)
Verdana, 11 pt
Tahoma, 11 pt

In the example above, I used normal weight, nothing fancy... If you use bold and underline, which is common for a page/column header or footer, this issue is even more apparent.

It feels similar to the following issue: https://connect.microsoft.com/SQLServer/feedback/details/482312/ssrs-report-font-rendering-issue

A workaround would obviously be to export to PDF and then print, but these are steps that our end users shouldn't have to (and won't want to) put up with to produce reports/invoices/etc. that ultimately go

Pause between pages when printing RS report

I am using Report Services on SQL Server 2005. I have a report that gets its data from a single SQL Server stored procedure. One other small table is used, but only to provide a list of values for selecting a parameter value to send to the stored procedure.

On the report I use a list control to display multiple records per page.

When printing the report (which currently produces over 500 pages - future printings of this report will not be nearly so large), the printer pauses between each page as if they are seperate print jobs. This is an HP LaserJet 5Si that normally cranks out reports very fast.

The only thing I can think of that might contribute to this sort of behavior is the fact that I set my margin sizes to 0in to get as much design room on the report as possible. Could that cause this sort of behavior?

problem when printing a report



I am having an error when I try to print a report.

When I click on the printer icon to print my report, it says:

"unable to load client printer control"

Any help??

My application is running on a shared hosting server.

Printing to printer. Not the page but some specific text.



I do run System.net.Mail on my web pages to send email confirmations. For those who doesn´t have an email I would like to print the letter to a printer.

Below is my code to send a body to the email. It works great. How ever. Could I somehow add a function to my page so when customer has no email the page instead prints the code to our network printer?

Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString("    <center> <img src=cid:companylogo> </center><br><br> " & fornamn & " " & efternamn & " " & "<br><br> " & adressen & "<br><br> " & "" & postnummer & " " & "" & postorten & "<br><br><p><strong>Välkommen som medlem i XXXX! </strong></p><p><strong>Tack för din beställning!", System.Text.Encoding.UTF8, "text/html")

SSRS 2005 Report Printing Additional Blank Page



New to SSRS 2005 and having some problems printing. I have a report that has only 7 columns and while in layout mode, the body of the report only has a width of not even 7 inches. I have made my left margin 0.2 in, RM at 0 in, TM at 0 in and BM at 0 in as well and yet when I print, I get an additional blank page. All my records print in the first page just fine but I get the additional blank page. This also happens to me on a different report when I change the settings for landscape printing. I am able to fit all the columns in one page using landscape but get an additional blank page for every page that is printed. So instead of printing just two pages of records, I get 2 additional blank pages.

Any help will be greatly appreciated.



WPF Printing to Datacard printer with Magstrip encoding.


I am writing a new WPF application that creates some visual elements and then trying to print them on a datacard printer. I am successfully printing using the System.Printing classes in WPF as follows:


Dim Pd As PrintDialog = New PrintDialog()
Dim Ps = New LocalPrintServer()
Dim PrintQueue = New PrintQueue(Ps, "Datacard Printer")
Pd.PrintQueue = PrintQueue
Pd.PrintVisual(Me.Grid1, "Print Job 1")  'this prints out perfectly


The problem is that the Datacard printer has an SDK that you can use to write to the Magstrip on the back of the card.  I have a working example using the PrintPageEventArgs in System.Drawing.Printing but I cannot find any close matches for the WPF world.  Here is that code:


Private Sub PrintPage(ByVal se

html report printing problem


i have a 6 page long html report which i want to print, printing behaviour is different between IE and FF, i want to print ony certain number of lines per page, how do i acomplist this task without crystall report or any other propritery tool,

Note: Data of the report is dynamic.

below is the html of my report

        <table cellpadding=0 cellspacing=0 border=0 width=800px>
<img src="images/Header_FS.jpg" width="800px" />

<table cellpadding="0" cellspacing="0" border="0" width="620px">

<td align="center" style="height:40px" valign="middle">
<td align="center">

Printing and Print Preview hangs on a large report


Using SQL Server 2008 R2 Cumlative Update #4 (build 10.50.1746)

A report that is 119 pages long hangs after page 113 in both the print preview and printing.

A different report that is 90 pages long hangs on page 60 in both the print preview and printing.

These reports worked fine before applying the cumulative update #4.

Looking for best setup to accomplish this task, need to generate report view for printing(edited)


We have some pages that are in gridviews and datalists.. one requirement for 2 of them is the ability to generate the results in a report view of sorts.. in other words, if you do a search and the results come back in one of the 2 gridviews or datalist, on screen its presented as it currently does.. just a gridview or datalist.. but i need to add a button that gives you the option to convert / generate the data in a report view so you can print it out and not be just a print out of the gridview..

I already offer the ability to export to excel format, but what they are wanting is to create it so if it needs to be presented to someone, they can print it out with the click of a button and it looks like a nice report.

Hope that makes sense... any suggestions would be great..

Just thinking to myself, could it be possible or would this be an option and if it can, how can it be incorporated to work correctly..

Build a template page that has a formal report layout.. then if you chose to print, then each record in the gridview loops thru the template and each record would print out on its own page..

Does that sound like it can be done? or am i just wishing it could be that simple??


// Added to above //

What i guess would be comparable to what im looking for is

Printing on dot matrix printer using ReportViewer


Hi all,
I'm developing a Windows application in C#. It generates reports using ReportViewer. These reports should be printed on a dot matrix printer. However, there is a problem.
The application runs on multiple computers connected in a local network, the dot matrix printer is connected to the network also. When the report is generated and the Print button from the toolstrip of the ReportViewer control is pressed, the default Print dialog appears. When the matrix printer is selected and Print is pressed, the application crashes showing the Windows error message.
However, there are some things I noticed:
1. The error appears only on some computers in the network. From the other computers, the printing on dot matrix printer from my application runs fine.
2. If I try to print the report on a laser printer (which is also a network printer), it runs fine.  
3. Printing on the dot matrix printer is succesful from other applications on these computers.
4. All computers have the same operating system (Win XP) and the same version of my application.
Could anyone give me advise on how to approach the problem? I cannot debug this one because I'm using the functionality of the ReportViewer control for printing and actually don't have any source code to debug Smile

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend