Print two copies of the same data - vb.net

I've a Crystal Reports report of one page. Only one. I want to clone that page, so when you print that report, you get two copies with the same data.
I know it can be done manually, but I want to avoid setting up the printer and write "Yes, I want two copies of this!".
Timelines ->
NOW ->
Use software, generate the Crystal Reports report, go to the in-built Crystal Reports viewer print button, write '2' in copies, print.
I WANT ->
Use software, generate Crystal Reports report, print dialog come up (this is done), you hit 'Enter' and two copies will be printed (AKA two pages which are the same)
I looked up sub.reports, but I don't want them in the same page.

If you duplicate all the content, you can use the New Page After Section option to place a page break between those two copies.
If you need to avoid duplicating the content, use the hack I describe in this answer. Just include two records in your dummy table, or to make it reusable, follow the recipe as described and use Select Expert to specify {dummytable.key} <= 2.

Related

pentaho report: how to add 'go back' button?

I have one report that shows a list of clients, including their ids.
I linked this report to another one, so when I click on an id, the second report is showing with the details of this client.
When I'm on the second report, I want to go back to the first report.
So I need to create a button on the second report.
I guess I need the javascript function window.history.back(); but how to implement it ?
I made a new message field, the prob is where to put this js function.
There's absolutely no information online.
If someone has done it, I would love to get some help.
Your best option is to code a "Home" button instead, or "Overview", or whatever name you want to give your 1st report, and have the button linked to the explicit URL of the 1st report.

Show all SSRS data on opening report then hide data to single page

I have a tabular report that has Show/Hide grouping on the rows. The end user wants all data displayed when first running the report, which is no problem. It covers roughly 3 or 4 pages. Can I make so that if I hide all the data, it then refreshes to show the "rolled" up table on a single page rather than split across multiple pages?
Go to properties window of the cells you are toggling display.
In the InitialToggleState property select False, it will show all data when you running the report initially.
Let me know if this can help you.
I decided to go with the report all rolled up when first run. Expanding from that state seems to keep the report on a single page plus I can roll it back up to a single page (although probably simpler to just re-run it).

Data entry form in sharepoint

I was wondering if anyone knows what a simplest way to create a data entry form in Sharepoint 2010 Foundation would be. Basicly I am looking to create a form that will submit its data to a custom list on the site, I don't want the users to interact with the list directly but use the form to enter data instead.
Also I can't use Designer or InfoPath, not being able to use these is what is causing the problem it seems. Just curious if anyone else has done something like this or could point me in the right direction.
Thanks
Every list is born with forms by default - one for item creation, one for edition and one for displaying. If you use content types, then you get a trio of these for each different type.
You never interact with the list directly, you do it through these forms. If you can't use either Infopath nor Sharepoint Designer, you can still edit them by clicking on the Page tab, then the Edit Page button. From there you can add or remove web parts, and connect them among themselves.
However, the amount of control you have is too limited when compared to editing pages through either of the tools or mentioned, or Visual Studio. For example, there is no straightforward way to add or remove list fields based on content type. Be prepared for ever increasing frustration if you can't use those tools.

JasperReports dynamic input controls

I'm currently trying to create a JasperReport report with some special input control behaviour. My needs are:
four input controls, two of them are dateboxes, the other ones are radio buttons
depending on radio button choice, one of the databoxes should be visible or not
so if option 1 is chosen, show both dateboxes; if option 2 is chosen, show only one datebox
I wonder if there's a "clean" solution - didn't find anything.
Any pointers will be helpful.
The Print when expression is not relevant for input controls on JasperReports Server.
There is no built-in support for hiding and showing an input control based on the value of a different one. The infrastructure for cascading input controls can certainly be extended to achieve this... but it would not be trivial.
The path I would take is to customize the .jsp page that displays the input control. There is a section in the JasperReports Server Ultimate Guide called "Customizing the Input Controls Form" which would get you started down this path.
For datebox part, you can use print when expression to decide whether certain blocks of the report is visible.
For other "input", if you meant some data you want to display inside the report, you can make some Parameter in your report, then set the Parameter from user input before you export the report.

How to split a Crystal Reports subreport across a page break?

I'm using Visual Studio 2005 and writing in VB.NET.
I have a subreport in a Crystal Reports report consisting of a list of log entries. Sometimes the list of log entries is long enough that it would extend onto the next page. What I see happening is that the list appears on the next page, leaving a big blank space at the bottom of the first page.
I've tried unchecking the "Keep Together" boxes in the "Experts" in a number of different places (sections, groups, etc.) but see no change in the output.
I'm guessing that this isn't the right way to go, but do you know what is?
(I'll be glad to provide more information if I haven't given enough.)
Thanks as always!
remove the subreport's 'keep object together' option.