continues printing in crystal report in vb.net - vb.net

i am trying to make a software for inventory and invoice.
i am using vb.net 4.5, SQL-server 2005 and crystal report.
my problem is that sometimes items are increases more then page size and i want them all to print on a single paper.
i am using TVS RP 3160 thermal printer. i want the paper width 7 cm and height according to the items.
i create two pages ,now i want that when the first page finish then the printer continues to print second page from details section or report footer.
i want to print my bill properly ,i don't want to print two different bills.
hope you understand my problem. please give your suggestions.
I appreciate if you can provide me some tutorial or source code for this problem.
Thank you.

Consider using SubReport in Crystal report. You can design your first page at first subreport and then the next page on the other sub report. Your main report will contain your one or more subreport on its footer section (you can use as many subreport as you want but also consider the performance impact).
Here is a tutorial

Related

ReportViewer in Winform doesn't show correctly the page designed in RDLC Report - VB.NET

I'm using Visual Studio 2017 with VB.NET
I've prepared a rdlc report, with rectangles and textboxes (no tables, cause I don't need to show any dataset, but only a list of data resulting by an elaboration).
I simply need to print this report on a common A4 paper, so I've added a reportviewer correctly connetted with my rdlc report.
In the rdlc report design screen I correclty see my report, with rulers on the left and on the top, that correctly indicate the A4 measures: 21cm W x 29,7 H.
Also my rdlc report InteractiveSize and PageSize are set on 21cm x 29,7cm , with 1cm; 1cm; 1cm; 1cm in margins.
With this situation, I start the program, make the elaboration and view my report in reportviewer after the elaboration. In its layout view, my rdlc report is shown like "pressed" and miniaturized on the left, with the header of the rdlc report that is repeated along 3 pages. The first page contains both header and all textboxes with solid borders, small and pressed on the left of the reportviewer view, while page 2 and 3 have only the header, with the rest blank.
If I print this reportviewer view, I get on paper exactly what I see in the reportviewer layout view, while if I export it in a pdf, I get 3 pages, but this time they are not smaller and pressed on the left of the screen, instead they correclty fit my rdlc original settings, even if the header is repeated along 3 pages again (but not "smallerized" this time).
I'm forced to ask this question cause after a long search I haven't found any solution, despite the big amount of topics I've read where users ask similar problems with this reportviewer.
Really hope in some suggestion.
You can decrease the size of your RDLC report page, it will not add additional page in PDF and would correctly fit with your default settings.

SSRS report display varies completely in PDF when compared to on screen display

I have couple of SSRS reports deployed to test server.
The report layout/formatting looks OKAY on the screen but when I export to PDF and view in PDF, everything is messed up.
For example, I see two columns shown in separate page. Even one of the tablix region comes up separately in another page.
So totally one page on-screen display comes to PDF in about 3 to 4 pages.
Also the 2nd and 3rd pages are always blank.
Did I mess up the report defination or any width/height parameters? The report is set to print in landscape and is in inches.
Any help is appreciated.
Thanks.
You probably need to increase the page width, from the Report menu. This will keep all your columns on a single page. As for blank pages when report is exported to PDF, you will have to squeeze out all white space while designing the report. The size of the canvas should not be more than what is just needed. If you have groups on your report and there are page breaks separating each group, setting the ConsumeContainerWhiteSpace property of the Report to true will ensure there are no blank pages at the end.

How to view multipe reports in 1 crystal reports viewer?

How can I open 2 seperate reports in 1 crystal reports viewer at a single time?
And when previewing the report, I see that my subreport doesn't filled its parent control width, how to Subreport width fill its parent width?
I use crystal reports for visual studio 2010.
As far as I know you can't have multiple reports show in the same viewer as the report gets bound to the viewer. Now there are some ways of getting around that and making it look like you have multiple reports showing in one viewer:
1) You could append multiple viewers to your page and suppress all toolbars.
2) You could make each of the reports into a subreport and put them into one report.
3) If the report is not going to be interactive(ie - paging, links, drill down, etc) you could just generate pdf's for each report and merge them.
And about your subreport not showing correctly: you need to format the subreport seperately to make it fit your page. Just formatting the subreport container will not help, you have to format the subreport itself.
Hope that helps!
Chris

Print page of information in vb.net

I'm building an application that takes information I pull from a web service and builds it into a simple looking page to print out. Is their a way to make some kind of layout so i can just fill in the blanks with my data in the appropriate places and print. Specifically I want to be able to print a page that includes multiple images and text arranged in a specific manner.
Yes, there is. Crystal Report is the answer.
There's Crystal Report and also RDLC that you can use.

How to limit RDLC report for one page in a PDF

I have a RDLC report and I am displaying it on the Report Viewer Control in my front end application. I get the report perfectly and theres no problem in it.
But the problem arises when I try to export the report to a PDF (using available option - basically the inbuilt option).
I get the report in 3 pages whereas my client wants it to be in a single page. I am not able to figure out the reason for it as in my report viewer I see only one page but in a PDF there are 3 pages. I have only four columns with no data, still they are breaking up into multiple pages. 2 columns on 1st page 2 on second page. Not real sure what happened to the 3rd page. Somebody recommended changing the paper size of the default printer but I didn't think is was worth trying.
Can something be done abt it so that I can control the size of the report???
This can be a real PITA but there are several things you can do to get you there in BIDS.
To see what it will look like as a pdf use the "Print Layout" button on the preview mode toolbar.
Goto the report properties and set the orientation and paper size as you need them.
Remember the margins in the report properties to make your report display area smaller. I generally set these smaller than the defaults.
Go back to you report items and make sure they are smaller than (pagesize - margins)
This should help.
you can try setting InteractiveHeight=0 , I know that at least works for the MHTML output, not sure about PDF, but it might lead you in the right direction