Friday, March 30, 2012

Print on back side of 1st page only

I have a SRS report that we are using as an invoice. I want to print out terms on the backside of the 1st page. Is this possible? Any ideas on how to go about doing this? I think the best way to go about doing this is to print the whole report double sided, and leave every 'even numbered' page blank expcept page 2, where the terms would print. I'm just not sure how to go about doing this in SRS.

Any help would be appreciated.

Randy

To start out with, can you be sure that content for each of the subsequent pages (page 3 and up, I mean) will be less than a page in length, with explicit page breaks between each, or does the content have to "flow" through pages 3, 4, etc without explicit page breaks? Does the content for page 1, similarly, have a known length, or can you force it to have a known length?

This is a cool problem <s>.

>L<

|||

The report is an invoice report. Page 1 will contain some header information (logo, address, customer, etc) and then will begin to list invoice lines. More than likely these invoice lines will carry over into multiple pages depending on how many items the customer ordered. In this case, page 1 would need to print with all of my header information and as much invoice line information as will fit, then page 2 would need to print terms, then page 3 should continue where page 1 left off. Page 4 would then need to be printed blank (since we are printing double sided) and page 5 would continue where page 3 left off, etc, etc. The challenge is telling SQL, "OK, now that we are on page 2, print this instead" and then, "now that we are on page 3, continue printing."

Thanks for any help you can provide.

Randy

Example:

Page 1 - Header, and body section

Page 2 - Terms

Page 3 - Body section from page 1 continued (if needed)

Page 4 - Blank

Page 5 - Body section from page 3 continued (if needed)

Page 6 - Blank

Page 7 - Body section from page 5 continued (if needed)

Page 8 - Blank

etc, etc

|||

>> No explicit page breaks

That's what I was afraid of -- makes things a little more complex, but I think it can be done... sorry for the delay in response...

OK, this is really cool. And I tried it a bunch of other ways, some of which might work and be less wierd -- but this really does work perfectly and doesn't disturb the "preview" layout at all -- it will only affect the print and PDF layout (and presumably other renderers that go to fixed page dimensions).

Here's how it works: It depends on something that usually annoys the heck out of us: the behavior of "wide" report designs in terms of page breaks for fixed page layouts such as print and PDF.

This is what you do:

1) First, figure out how you are going to separate the content of the first page from other pages and design your report with *two* tables, one for first page and one for the other pages. The first table obviously has your header while the second does not.

I did this by creating a SELECT statement that included a row number using SQL Server capabilities, because you can't filter or break by the the reporting RowNumber() function. You can do this in other environments as well -- in another thread somewhere here I show a worked example for doing it in SQL 2000 -- and you could also just use two datasets, one for each table. But in SQL 2005 it's really easy to do this:

Code Snippet


SELECT Row_Number() OVER (ORDER BY Whatever) As MyRowNum,*
FROM YourData ORDER BY Whatever

2) Now you make sure you only have the right details for each table. In my example, it worked out to have these two filters. If you split your data by some other method into one dataset for each of the tables , you don't need to do this:

Code Snippet


=Fields!MyRowNum.Value <= =15 ' first table

=Fields!MyRowNum.Value > =15 ' second table

3) Design your two tables so that they fit within the normal printable page limits -- if your paper size is, for example, 8.5 * 11, you should make sure that the tables are no wider than will print properly in this normally.

4) Here's the trick: You need to make the layout (page size -- *not* interactive page size) wider than will print properly for your page set up.

Horizontally across from table #1 , you put a rectangle (or whatever) holding your Terms details for the invoice.

Horizontally across from table #2, you don't need to put anything.

The layout ends up looking something like this:

Real layout (say, 7.5") a bit of space for comfort addtl layout, forcing the break

Header information, part of Table number one, plus the details that fit on page 1

Your terms go here Table number two with the rest of your details

The extra layout you put in should not be any more than 8" wide (in the example where the page is 8.5" wide) and preferably it should be a bit less.

The result is exactly what you want and what we usually do not want but get by accident, when we design page layouts that don't fit in a fixed page size:

the terms are pushed to page 2 and each appearance of table #2, starting with page 3, gets followed by an extra blank page...

Whaddya think?

>L<

print next record in next column

I have a simple table with a few rows of data. I would like to create
a report that would print the records left to right (meaning; next
record would go into a next column and not down into the new row).
What is the best way to accomplish this?
I have a report created with two columns and the fields are in both,
but it prints out the same data twice in both columns.
Any help is greately appreciated!You may create mutli column reports which sounds like what you are looking
for... There is an example at www.msbicentral.com
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"muris" <rmuris@.hotmail.com> wrote in message
news:1126021920.722602.103050@.g44g2000cwa.googlegroups.com...
>I have a simple table with a few rows of data. I would like to create
> a report that would print the records left to right (meaning; next
> record would go into a next column and not down into the new row).
> What is the best way to accomplish this?
> I have a report created with two columns and the fields are in both,
> but it prints out the same data twice in both columns.
> Any help is greately appreciated!
>sql

Print newly created report later

Hi all,

I am creating reports using crystal report in VB.NET. The reports are created successfully and can be converted to PDF and Word.

After the creation i send generated documents as email. And also have to print them.

I don't want to use Adobe/Word for the printing. I want to create .prn files for printing in the generation process.

Is there any other option which can be used to print the created report.

I can print the reports directly from crystal reports but i want to split the process in two phases
1, Generation
2, Dispatching

Looking for ideaCant you make use of Print button avaliable in the Report?|||Thanks for your reply.

But the scenario is entierly different in my case. I am using Crystal Reports as window service and the process is splited in two phases

1, Generation
2, Dispatching

One process will generate a document and then save it
the other process will print that generated document

I can generate and print in one process with out storing the file on disk. But i want to do it in two steps.

Regards|||What is the difficulty in doing this in two steps?|||The difficulty is,
I have to create a report in Step one and have to save it to the disk. Right in which format i would store it so i can again open it through crystal report and send its print?

Or is there any other format to store the generated report? SO i can print it again through crystal report.

I don't want to use MS Word or Adobe automation for printing.

Regards|||If you show the report in your application, enable print button so that you can print it from CR|||Madhi
Thanks for the reply but i think you are not getting the issue which i am facing.
My application runs as Windows Service it has no GUI.
Also first i have to create a report , save it to the disk. The other process will print that saved report file.

I can save the report in pdf, word and other suported formats but to print pdf i have to use Adobe or to print word i need MS Word. Which i don't want.

I directly want to print the saved file.

Regards|||Well. Which front end application are you using?|||There is no such Front End.

The request is submitted to the data base and the application checks the data base for any new request.

On the new request it generates the report and stor/export in specific format also updates the data base.

The other application picks the stored documents/files and prints then, email or fax them then again update the database.

Email and Faxing is working well but the print is creating problem as i described in my previous reply.|||See if you are able find solution here
http://support.businessobjects.com/

Print Name (field from dataset) On Every Page (Page Header)

Hello,

I am using the ReportViewer control and Client-Side Processing to display a Training Report that works great.

However, I need find a way to have one of the fields of my dataset display on every page of the report (Page Header).

I receive this message "The Value expression for the textbox FName refers to a field. Fields cannot be used in page headers or footers".

Is there a way to get this field to appear on every page of the report (preferably at the top).

Thanks for any help that you can provide me.

This is easy all what you need to to is to add ne parameters which get his value from your dataset fileds and then use this parameters in your page header or footer read this turtorial it will help you

http://technet.microsoft.com/en-us/library/bb508810.aspx

read the section titled " Assigning report parameter values using consolidated fields "

|||

hey

I told the answerin different post ( http://forums.asp.net/t/1160246.aspx ), but repeat it for you

you should define a Parameter for your report from Layout section ,then ( right click insome empty place in outeside of your report table, you'll see a context menu with 4 Items , select the Report Parameter) ,then create a Textbox inside your Header or Footer , then rightclick onthe textbox and and select Expression , then put the followingcode in it .

=Parameters!ReportFooterParameterName.Value

goodluck ,|||

I appreciate the help. I am not quite sure what to do when setting up the Report Parameters to fill this textboxt with the field from my dataset. Would you mind giving me a little guidance in this area?

I am getting the message A Value expression used for the report parameter 'Name' refers to a field. Fields cannot be used in report parameter expressions.

Thanks again!

|||

ok ,

let me describe it for you

there is 2 different type of value in reporting server ,

1 ) the filed that you provide by DataBase that will display like Filelds!DBFiledName.Value

2 ) the filed that you provide by getting information fromuser or from yourexisting Query this type of values called Parameters and will display asParameters!ReportFooterParameterName.Value

when you want to show oneparameter inHeader orFooter ,you can't useFields it means all the textbox that you put in header / footer , shouldcomplete byParameters ,

for sending parameters to header or footer , you have2 option ,

Take it FromUser or programmatically fill the Parameter , in commonly uses , we set the parameters Programatically , like

@.myParameter = "hello world!"

when I use the myParameter in Header, itwill display thehello world! ,

but if youuse the Fields inHeader or Footer it cousean error thatyou taken it .

for sending a parameter to your header , pleaseread the post above ,

Thank you , 7 Goodluck

Print Multiple Documents with VS2005 Local Report

Hello all.
I have a document (that could be for example an invoice) that was done with
VS2005 Local Report. This document is exported to PDF in the application
(with response.OutputStream.Write).
Now I want to be able to print multiple documents (for example invoices), by
generating a PDF with all the documents selected by the user.
I can generate as many local reports as i want to with the desired data. But
how can i export them to a single PDF file?
I will appreciate any comments.I am trying to do this also -- except printing, does anyone have any
suggestions? I can call the report over and over again, but then I get a
print dialog for each iteration of the report.
Thanks!
"Orlando" wrote:
> Hello all.
> I have a document (that could be for example an invoice) that was done with
> VS2005 Local Report. This document is exported to PDF in the application
> (with response.OutputStream.Write).
> Now I want to be able to print multiple documents (for example invoices), by
> generating a PDF with all the documents selected by the user.
> I can generate as many local reports as i want to with the desired data. But
> how can i export them to a single PDF file?
> I will appreciate any comments.|||Just to say that I solved this problem by redesigning my local reports to
support multiple documents.
I couldn't find another way to do this.
"Joel" wrote:
> I am trying to do this also -- except printing, does anyone have any
> suggestions? I can call the report over and over again, but then I get a
> print dialog for each iteration of the report.
> Thanks!
> "Orlando" wrote:
> > Hello all.
> >
> > I have a document (that could be for example an invoice) that was done with
> > VS2005 Local Report. This document is exported to PDF in the application
> > (with response.OutputStream.Write).
> >
> > Now I want to be able to print multiple documents (for example invoices), by
> > generating a PDF with all the documents selected by the user.
> >
> > I can generate as many local reports as i want to with the desired data. But
> > how can i export them to a single PDF file?
> >
> > I will appreciate any comments.

Print Multiple Copies

Is there any way to send a quantity to the print que to deterimine the
number of copies to print?
I need to deliver a copy of a report to each department that is
reflected on areport. Let's say for example, I have a report that has
3 departments with line items to be produced by each department, can
query the count of departments and send this count to the print que to
get this report to print three copies?
This report is being developed in SRS2000.
Thanks to all who respond!On Apr 26, 11:35 am, ba_wvu <bander...@.allin.com> wrote:
> Is there any way to send a quantity to the print que to deterimine the
> number of copies to print?
> I need to deliver a copy of a report to each department that is
> reflected on areport. Let's say for example, I have a report that has
> 3 departments with line items to be produced by each department, can
> query the count of departments and send this count to the print que to
> get this report to print three copies?
> This report is being developed in SRS2000.
> Thanks to all who respond!
As far as I know, there is not an option to do this. That said, you
can group by Department as part of the table/matrix control and select
'Page break at end' as part of the grouping properties. That way you
would only need to print one copy and each Department would print on
its own page(s). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||if the departments are fixed,then what you can do is to create a subscription
and give the dept ids. so it reaches all the dept.
See if you can use this, if possible.
Amarnath
"ba_wvu" wrote:
> Is there any way to send a quantity to the print que to deterimine the
> number of copies to print?
> I need to deliver a copy of a report to each department that is
> reflected on areport. Let's say for example, I have a report that has
> 3 departments with line items to be produced by each department, can
> query the count of departments and send this count to the print que to
> get this report to print three copies?
> This report is being developed in SRS2000.
> Thanks to all who respond!
>|||Thank you both for your responses. In a response to your comments - I
currently have the report page breaking on the grouped departments,
but the floor manager wants to see all items, not just a particular
departments items, on the shop order. And the departments are not
always fixed, orders can always have different departments. So I'm a
little stuck. Any additional comments/responses are appreciated.

Print Multi table report with a range of parameters.

We have a work order print that is called from a web page using a URL. The
print consists of 4 tables. All of the recordsets use the same parameters
but come from different data sets. I have a request to make it print
multiple work orders at a time.
When I use a select for multiple work orders it prints it all in one set of
tables but I want a seperate set of tables for each work order. Is there a
way to group the tables together?
Any other ideas?You need to use a list control, and if your reports are in RS 2000, you need
to do some hand editing of the xml.
First create your list, then add the table which displays the actual data +
any textboxes for headings and such.
Then you mark your list, and set the Grouping property to the Work Order ID.
If you're working with RS 2005, right click on the list in the report,
choose Properties. Click on the "Edit Details Group" Button. Select "Page
Break at end". (Or start, if you want.)
If you're working with RS 2000, you need to hand edit your RDL like this:
Open the code version of the report
Find your list
In the Grouping section, add <PageBreakAtEnd>true</PageBreakAtEnd>
Your code should look something like this:
<List Name="List1">
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>18pt</FontSize>
<Color>Maroon</Color>
<FontWeight>900</FontWeight>
</Style>
<Top>0.875in</Top>
<Grouping Name="ListGrouping">
<GroupExpressions>
<GroupExpression>=Fields(Parameters!PageGroupingParameter1.Value).Value</GroupExpression>
<GroupExpression>=Fields(Parameters!PageGroupingParameter2.Value).Value</GroupExpression>
</GroupExpressions>
<PageBreakAtEnd>true</PageBreakAtEnd>
</Grouping>
Save the code, and test the report. Did it work?
Kaisa M. Lindahl Lervik
"msc" <matt@.dontspam.com> wrote in message
news:6C0D2B4C-DCED-4559-A849-18B260FA7C03@.microsoft.com...
> We have a work order print that is called from a web page using a URL.
> The
> print consists of 4 tables. All of the recordsets use the same parameters
> but come from different data sets. I have a request to make it print
> multiple work orders at a time.
> When I use a select for multiple work orders it prints it all in one set
> of
> tables but I want a seperate set of tables for each work order. Is there
> a
> way to group the tables together?
> Any other ideas?
>sql