Crystal Reports, how to, change paper size at runtime? - crystal-reports

version: Crystal Reports XI (11.0.0.895), not the Visual Studio version.
Our thick client application that calls our rpt files has printer settings, but I can override that with settings in the rpt file. Like turning the page to landscape for printing out wide data. We do that by dropping in formula called "Landscape" and setting that to "True".
Addition to that I need to be able to toggle between letter size and legal size based on the amount of data being demanded. I've dug with Google for answers, but I keep finding custom paper sizes (don't need) and solutions for the Visual Studio version where I would have access to the code-behind files.

There is no option in crystal reports to change the page size in run time. You need fix the page before developing the reports.

Paper size is always fix at design-time and you are always able to change at runtime by vs, not from crystal report inside.
So only option to change any size from visual studio. You can set any standarad size or custom-size ( Before apply , define paper-size).
change paper size in microsoft report viewer
http://www.codeproject.com/Questions/133694/Crystal-report-page-size

Better way Create a Paperform ,to create a Paperform you can find a class in GitHub and use the Paperform name in the crystal report
while running the program change the size of the Paperform according to your requirements, each time you have to delete the PaperForm and re-generate it again

Related

Crystal Reports Embeded Image Size

I am having trouble adjusting the size of an image (EMF) embedded using the Crystal Reports 10 designer. I am importing the picture as an OLE object using the Insert menu and selecting picture.
I have 2 workstations which access several reports. Each workstation imports the image at a different size.
I can import and adjust the size correctly on Workstation 1 but adjusting the image's size on Workstation 2 makes the image too small.
Any advice or insight on this would be greatly appreciated.
I have personally had some oddball issues with GDI, and I would examine the Windows High Priority Updates and Custom Updates on both machines. You may need to apply the following GDI+ Update.
The other question would be which version of Crystal Reports 10 Service Packs you have on each machine. I hope this helps some.

How can I print UPC-A objects for labels?

I have a Crystal Reports project that I am working on where I need to generate a label with UPC-A's. After doing a bit of research, I've found that Azalea Software offers a tool that is suppose to integrate barcode objects into your application.
I purchased the software from Azalea, followed all of their instructions and I can not get their software to work with my report. I don't want to speak ill of Azalea, because their support has been great, but is anyone aware of a legitimate alternative for UPC-A barcode creatioon from within Crystal Reports 2008?
I don't mind purchasing another 3rd party API, I just need to be able to generate dynamic UPC-A images from the UPC-A numbers that I need to encode stored within my database.
Further information-- this is a label document that is printed from a ClickOnce published application that uses the Crystal Reports for Visual Studio 2010 runtime, and the Crystal Reports Document Viewer control to view and print these labels.
We use IDAutomation for our barcoding. Very easy to use when installed, you use it like a font on calculated barcode fields. We use it mainly for Code-39 and Code-128 barcodes; though looking at the site it can make UPC/EAN codes too. It also has a selection of sizes for each barcode, alongside the normal font resizing.
On our version you have to install the fonts on every client computer running the report locally; but only once on telnet servers etc.

ReportSize in Excel not the same as in PDF

I have done already a lot of small (and also bigger reports) with report viewer 2010. In most cases I give the user the possibility to select the destination-format (PDF, Excel and sometimes also word).
However I always encouter the problem that the page format settings are applied different in the different output formats: If I create a report and optimize it to PDF, set the page size and the borders, then design the report, the report looks good (Measures are correct, borders are correct). However if I export it to Excel, it always is to big. What in PDF gives me one page, is in excel on two pages (horizontally).
I checked the page borders in excel because I have read that there was a bug in an ancient report viewer with this, but they are exactly as specified in the reports properties. The paper size is also correct.
I also have set the report width over the properties grid (via F4) to PageWidth-LeftBorder-RightBorder, but this is the same.
I have also played around with the InteractiveSize, but this seems not to have an influence.
Is there something special to know about Excel-Exports from report viewer or is there a known bug? Has someone a solution for this behaviour?
It seems to me that in excel the same page format has half an inch less size than in pdf. Up to now I was never be able to create an exact copy of some paper report template. In the end, it was always something like making handicraft work, but I don't like that. I would like to understand whats going on.
As an additional information, I specify all metrics in centimeter, may be there is a problem with that? And the office is office 2010.
A real solution to this problem I have not found. Maybe this connect entry promises somethin for the future:
http://connect.microsoft.com/VisualStudio/feedback/details/636407/rdlc-excel-export-margin-problem#

Crystal report to pdf's not generating as seen in Preview of Crystal Reports

I am generating a crystal report and using a C# prog to break or "burst" the file in to individual pdf's (using this prog.... Crystal Reports "File Break" )
When move the PageHeader section to the "Report Head" section, the details part of crystal reports does not show after the C# prog generates.
When I preview the crystal report from "preview" in crystal reports the detail section is there.....
Any Ideas?
Thanks in advance!!
I would post images but the site will not let me with out more than 10 rep points..
This is the crystal report preview
And this is after i generated the pdf.... See how the details section is not being populated, even tho in the preview in CR the activities are showing.... This all happened when i switched the top image to be in the group head instead of the page head....
Assuming there is nothing going on programmatically with hiding/suppressing sections, record selection, etc... generally, if a preview looks different than what is output to PDF or printed, it's always related to printer drivers, fonts chosen, and report printer setup.
For starters, I would make sure you're using a common "HP-compatible" printer as the driver (selected default printer while developing in Crystal) for the report. Also, just for testing purposes, change your report fonts to something VERY simple and "old school" like Courier or Arial. If you get the correct results after this, then go in and tweak/reapply your old fonts.
Also, make sure your individual field objects on the form are set to Can Grow. Additionally, always size your objects bigger than what it looks like it needs. For example, if a field looks like it needs to be 10 characters wide, size it 12 characters wide. This will help with printer and output incompatibilities.

Can you start Crystal Reports 10 in read only mode so users can't create or change a report?

I'm in an environment where I have created reports in CrystalReports 10 and only want my users to view the report from an external application. The application is already set up to open the report with crystal, but I don't want my users to be able create or change the report. I can't seem to find a command line option to do this. Is there a runtime only version of Crystal?
embed crviewer and craxdrt components in your app (delivered with CR developer's edition, free to distribute) so that you'll be able to view reports without modifying them. Basic manipulations (zoom, search, export to pdf, display/hide details or groups) can still be done.
If you must launch this viewer from a command line, I'd advise you to embed it in an office document/file and manage it through VBA. You could for example launch the runtime version of Access (free to distribute) that will contain one generic form for Crystal Reports display.
There are Crystal Reports viewer components which you can use in your projects. They are coming with the Crystal Reports Developer editions and you can use them in almost every programming language. There you can define the report as view only if you want.
Go to SAP.com and search for "Crystal Reports Viewer". It may or may not do what you want.
Also take a look at "Crystal Reports Server". CRS XI is a nice reporting portal with many useful server-side features. Schedule reports to run and auto-publish. Generate PDF or Excel output. Limit access to reports (or groups of reports) by specific users, etc. But for your application you can use HTTP access within your application to the published results. This is a good solution for example when you have a large number of users viewing the same reports.
What about marking the file as read-only? If the viewer opiton isn't open to you.