The service pack for Visual Studio has fixed the problem when I print my report from VS, however when I deploy and print my reports from the SSRS website they are still incorrect.
My SSRS server is running SQL 2005 with service pack 2 installed and the 9.00.3152 9333097 Cumulative hotfix package (build 3152) for SQL Server 2005 Service Pack 2 also applied.
I find it hard to believe the problem was fixed in the developer tool but NOT in the client tool?
How can I develop reports when the output from the developer tool is different to the output from the client tool?
For example I specify a box to be 5cm wide, and when printed from visual studio it is 5cm wide, but when printed from the SSRS website it is not 5cm wide!
I am printing my reports from my local report viewr, and the margins are off by just a little bit. It looks like printing shifts the contents of the report 1/8 inch to the right, borking the margins.
Report body is 7" wide Margins are .75" inch on all sides Print Preview mode displays the report properly, centered Output is similarly skewed on all printers (tried 4) This is using the VS SP1 version of the RS dll's. However, when I print the report I get it shifted to the right by 1/8 inch. This leaves me with a 7/8" margin on the left, and a 5/8" margin on the right.
Setting the margins to Left: 0.625, Right: 0.875 (5/8&7/8) actually causes it to print centered, so I know it is paying attention. When I do this, the print layout mode shows the contents shifted to the left 1/8", as expected.
I assume that people print using this control, or at least it was tested, so has anyone else seen this or is it a confirmed bug?
1. I would like to print one of my database to a printer, how can I do that? 2. I would like to transfer one of my database to Microsoft Excel 97/2000, how can I do that?
Hello, I am trying to get a SSRS 2005 report to print from my Visual Studio 2005 C++ application without using the ReportViewer to preview it first. What I have done is created a dll that I call into when I want to access a certain report and print it. While searching around on the internet I found an MSDN article about printing a report without previewing and it had an example in C# code. So I used that as a guide for my C++ code but I am still having problems with rendering the report properly so it can be printed. When I try to render a report using the "Image" format, my streamid string is empty but the byte array that the render routine returns is not. Here is the code I am using, what could be the problem here?
Note: m_Streams is define elsewhere as array<String^>^ m_Streams = gcnew array<String^>(10);
Very strange problem here with Reporting Services SQL 2005 SP1 with latest patch KB 918222 on Windows Server 2003 SP1. The clients PC are Windows XP both SP1 and SP2 and that's not affecting our problems.
When my default printer is set to the "Printer 1" (HP LaserJet 9000), when i look a report's into the Report Viewer and i click on the print button (printer image button that use the ActiveX RSClientPrint), i let the default printer to "Printer 1". In this case, the report is printed correctly.
Again with my default printer set to "Printer 1", i look the same report into the Report Viewer and i click on the print button again. This time i select another printer "Printer 2" (an older HP LaserJet 8000 DN) and the report is printed correctly.
Now the problem is when i set the "Printer 2" as default printer. If i go to the Report Viewer and i click on the print button for the same report that was printed correctly before, now the report seem's to be ok into the preview before i print, but when i send the job to the "Printer 2" the report require a unknown paper format, so the "Printer 2" ask paper into the tray 1 (manual feed) and the result of the printed report is not good. The right and the bottom seem's to be cutted. I tried to reduce the report dimension without good results. The report is always cutted to right and bottom and the printer ask paper into the tray 1 (unknown paper).
Is't not the end, if i print the same report on the "Printer 1" when the default printer is "Printer 2", the report is printed correctly.
I have tried to use another printer than the "Printer 2" to see if the problem is the printer. I tried the "Printer 3" (HP LaserJet 9050) as default printer, i print the report on this one and i have the same problem than with the "Printer 2". And if i set "Printer 1" as default and i print on the "Printer 3" the report is printing correctly.
For all the printers i have the latest drivers. The same problem is occuring on all other PC other than mine.
We have checked the printers configuration and all seem's to have the same configuration.
Can this be a bug with the ActiveX RSClientPrint or what ?
Note that all previews before printing are good with all printers, but with the "Printer 2" and "Printer 3" set to default, the printed report was not the one i saw into the Preview.
Below a link to a sample report that we have. All our reports have the same global dimensions.
Is there a way to save print settings with the report so that settings such as the size of paper (A4, legal...) and layout (landscape, portrait) do not have to be specified by user everytime she wishes to print the report?
We are using SQL 2005 and Reporting Services 2005. When we print reports they take so long to print that it is faster to export to PDF and then open and print the PDF. The cause appears to be the print job file size. In our old reporting tool one report had a file size of 1.22MB. The reporting services version of the same report is 2.82 GB. This takes 20 minutes for the printer to spool and process. Our users are understandably upset that a highly touted new technology requires a work around to print reports efficiently.
Is this file size normal? What can we do to make printing from SSRS feasible?
hi, I am using vb.net 2005 and sql server 2005 express edition. I have used reports (*.rdlc) to print invoice. The invoice format is as follows: '********************************************************************************** Company Name
All the data is placed in body section of report using different DataTable dataregions. This is done as Taxes and Duties have multiple Rows and columns but the location of printing of Taxes & duties Table on paper always changes depending on the no. of items in the invoice this does not match with the pre printed stationery used for invoice printing.
How do i print the taxes & duties and all details below the ItemDetails Table always at the same location independent of the no. of items in the invoice?
When print reports in Reporting Services 2005, the default paper is "A4", but our reports have letter size, or even "A3" or "legal". Could we set a default paper for printing for each report?
I've created a data flow where I have linked to an OLE DB Source then created a Flat File Destination. My file is now on my c: drive. I'd like to use that data to create a report, then print to a PDF. How would I do that?
Currently I was doing this in Access, but I am moving my processes to SSIS.
Hi....We are generating reports in Excel and PDF and the reports are accessed from a web app interface..
the problem is that when the users print a report generated in Excel from the web app it prints in a veritcal split on paper...This is because the width exceeds the paper width....We do not want to redesign reports ...Is there any method to squeeze Excel data into the availiable page width ( This happens automatically in PDF so issues with it).....Can it be done in code ?
I am new at reporting services, and would like to know I it is possible to print a reporting service report via code. I have done this with Crystal reports and would like to do it here. I even considered creating a ReportViewer object and setup the report, but not actually bind it to a control on a form. They will not see this report and I really dont want to put it in a report viewer. Any help is appreciated.
I have designed a report in Visual Studio 2005. The report have a couple of data regions (table and list) + some free text boxes.. The problem is when i print or export the report to pdf etc, it prints/exports a blank page after every page. e.g. if a report is of 2 pages, it will be printed/exported as Page 1 + Blank Page + Page 2 + Blank Page...
Can any one please tell me what am i missing here?
I had developed my reports using SQL 2005 reporting service. While crerating the report i set the page size to 8.27in Width x 11.69in Height. I am calling this report in my aspx pages using report viewer.
But the problem is I can't able to set the size of the page to A4 size. When i set the size of the page to A4 while printing the page is divided into two pages.
Is there any way to override the print option in reportviewer where we can set the page size to A4 ?
Hello all, When I print the reports ( or export to PDF) in Report Manager, my every alternate page is blank? If the report is just one page report, I get second page as blank when I print or export. The report prints in Landscape format( which should be fine given 8.5 inch height and 11 inch width). I have played with the interactive Height and other height parameters but with no luck. My current settings in the rdl file is: <BottomMargin>0.5in</BottomMargin> <RightMargin>0.5in</RightMargin> <PageWidth>11in</PageWidth> ... <Width>11in</Width> <InteractiveHeight>1.5in</InteractiveHeight> <Language>en-US</Language> <TopMargin>0.5in</TopMargin> <PageHeight>8.5in</PageHeight>
I would highly appreciate any suggestions. Thanks Phewa Taal
I have several reports that are set to landscape but then lose this layout when a linked report is created from the original report. I found the link below describing Brian Welcker's workaround and my question is where do you place the vb.net code he provided?
I must confess it has been a long time since I have done any SSRS reporting. I have the following SQL Statement (I will change it to a stored Procedure with parameters once I get the design done):
SELECT rc.wo_id, rc.process_id, rc.item_id, rc.lot_no AS full_lot_no, rc.oper_id, rc.seq_no, CAST(la.attr_value AS DECIMAL(12, 2)) AS weight,
[Code] ....
This gives me the data I want which looks like this:
The grouping is on the Rework ID. Any of the pieces can be put on any rework route. As you can see, there are 4 routes, but 5 pieces. What I need is for each rework ID to be printed on its own paper even if there is only 1 record for the route. So I would expect 4 pieces of paper, 3 with 1 record, the 4th with two pieces. Is there a setting in the Tablix or report that I can set, or is there an expression I can use?
I have developed some report in Sql Server Reporting services my Page orientation is portrait that is report height and width are 8.5 and 11 respectively and margins are set to 0.3 in when it is printed the pages are printed more that actually viewed Pages.
So I have been asked by our sustainability person to create report from our printing data that actually shows the number of pieces of paper used. This is easy enough for single-sided printing, but when printing in duplex the software does not take into account that 3 printing pages actually equates to 2 pieces of paper. I know this sounds simple, but say I have a print job record that looks like this:
This is a print jobs that if done correctly is actually 21 pages( duplex printing). If the job is say total_pages =5 I cant just divide by 2 because its actually using 3 pieces of paper ( yes they are wanting this data don't ask why). How can I adjust some sql to accurately depict 5 pages, front and back, as 3 pieces of paper?
I have deployed a report that is configured for landscape printing. It does print in landscape, however, only the first seven columns appear on the first page and the other five columns appear on the next page. Is there a method, like in print preview setup in MS Excel, where we can scale down the print (like to 80%) so all columns appear on each page?
Hi, I use Vs2008Pro. I can not set the correct margins for different printers.I set top margin to .5in .It works on a printer but doesnt on another one.I created a table for printers and save margin values that work for that specific printer and then load before printing. So I need to set margin values before printing. I am using LocalReport rdlc files. Thanks for help.
Hello AllDoes anyone know how can we set the margins (Left and Right margins) of the PDF which we export from the report server for the Sql Reports? I cleart more hereSuppose I have a created a report using the SQL Reporting Service and then run the report from the report server itself. Here I got the option throuh which I can export report data in PDF format. does any one know how can we change the left and right margins for this PDF. Currently its default margins are very large. Thanks In advance!!!
This is supposed to allow us to build a linked report with these properties already set. This post works for a linked report that is already deployed. I want to set the properties on the report as I'm deploying the linked report. The instructions listed don't seem to work, it gives type errors and other related things when I try this approach, has anyone else had any luck doing this?
It says: Error : rsElementTypeMismatch (The value provided for the PageHeight field is not valid for its type. It cannot be converted from a string value to the type that is required.)
What do I do to get around this? I tried changing it to a number, but no luck. I'm trying to do this in rs.exe:
Dim props(7) As [Property] props(0) = New [Property] props(0).Name = "Description" props(1) = New [Property] props(1).Name = "Hidden" props(2) = New [Property] props(2).Name = "PageHeight" props(3) = New [Property] props(3).Name = "PageWidth" props(4) = New [Property] props(4).Name = "BottomMargin" props(5) = New [Property] props(5).Name = "TopMargin" props(6) = New [Property] props(6).Name = "LeftMargin" props(7) = New [Property] props(7).Name = "RightMargin" props = RS.GetProperties(basereportpath, props) RS.CreateLinkedReport(name, parent, basereportpath, props)
Anybody please help me about the printer. I have a user want to print the letter from tray3, he slects the tray3, but it always print from tray2. I tried by myself. It is the same thing. Anybody can help me?
Is there a way to route a file directly to a printer? I have a process that creates PDF file in a known location and I would like to route them directly to the printer after creation.
using (FileStream fs = File.Create(@"C: est est.txt")) { using (StreamWriter sw = new StreamWriter(fs)) { sw.WriteLine("******************");
try { Stream streamTemp = (Stream)testFiles[0].Data; byte [] byteData = new byte[streamTemp.Length]; for (int i = 0; i < byteData.Length; i++) { byteData[ i ] = (byte)streamTemp.ReadByte(); }
using (MemoryStream ms = new MemoryStream(byteData)) { string result = Convert.ToBase64String(ms.ToArray()); sw.WriteLine(result); } } catch (Exception ex) { sw.WriteLine(ex.Message); }
sw.Flush(); } }
After I re-deploy the modified assembly and create a simple subscription, it fires, and there are no exceptions. But instead of some good-looking XML in the test.txt file, I get this:
[Actually, there are much more slashes, but I am showing just the beginning of the file - for brevity...]
When I run this report in ReportManager and export it as "XML file with report data", that XML exported file looks exactly as I expect it to. So, the data is there, in the report, but how do I extract it?
I've been trying to figure out why I am not getting the real content of the report in XML format. Maybe, this line is wrong: RenderedOutputFile[] testFiles = notification.Report.Render("XML", deviceInfo); AND/OR this line is wrong: deviceInfo = String.Format(................etc. AND/OR I am using a wrong method for converting the Stream to a string. ...or, something else?
Could someone kindly help me figure out what I'm doing wrong, please?
I have a windows NT service, which prints to a laser printer programmatically using MSRS 2K. It works fine with a HP printer however when I try printing to a Lexmark Printer it does not always print. Somebody help. Microsoft please release a latest patch for MSRS 2K, its been so long since we had one.
Private Function MoveToPage(ByVal page As Int32) As Boolean
' Check to make sure that the current page exists in
' the array list
If Nothing Is Me.RenderedReport(m_currentPrintingPage - 1) Then
Return False
End If
' Set current page stream equal to the rendered page
m_currentPageStream = New MemoryStream(Me.RenderedReport(m_currentPrintingPage - 1))
' Set its postion to start.
m_currentPageStream.Position = 0
' Initialize the metafile
If Not Nothing Is m_metafile Then
m_metafile.Dispose()
m_metafile = Nothing
End If
' Load the metafile image for this page
m_metafile = New Metafile(CType(m_currentPageStream, Stream))
Return True
End Function
Private Function MetafileCallback(ByVal recordType As EmfPlusRecordType, ByVal flags As Integer, ByVal dataSize As Integer, ByVal data As IntPtr, ByVal callbackData As PlayRecordCallback) As Boolean
Dim dataArray As Byte() = Nothing
' Dance around unmanaged code.
If data <> IntPtr.Zero Then
' Copy the unmanaged record to a managed byte buffer