cancel
Showing results for 
Search instead for 
Did you mean: 

Page Setup

0 Kudos

I crystal report 11.5 there was a way to access the page setup of a report.  Is there a way to do this with the .NET control?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

So let me tell you my purpose behind this.  One application that I have has over 500 reports.  They can be printed to about 20 different printers based on paper size and if it is color etc.  The crystal 11.5 ocx allowed me to select page setup and pick a printer, orientation, paper size, duplex, etc.  Then it would refresh with the report after the page setup closed. The setting would then be a part of the report using refreshex.  Then I stored all these options in a database.  The next time they loaded this report to print, it reads the database and remember all these setting.  What printer, what tray, duplex, paper size, orientation.  All of these options are a part of the .NET control.  I just need a way to update these settings to the report.  Right now I see no way to update them except write my own interface to select drop downs etc and then update the report based on these setting.  Is there an easier way I can do this other than writing my own interface?

0 Kudos

Search the SDK help file for CopyTo and that should be what will do this for you.

You can use both RAS and the Engine. Then use SetPrinter to update the report.

And for refreshing simply click the View Report button you have in your app.

As Ludek indicated, lots of code samples if you search.

Don

0 Kudos

The copy to and from work great. I was able to find that last night. I appreciate the post.

Answers (2)

Answers (2)

former_member183750
Active Contributor
0 Kudos

There is noway to access the page setup of a report using the CR SDK for .NET. Perhaps a bit of an explanation of the use scenario will help us give a better answer. Also, do use the search box in top right corner. There is lots and lots of info published on printing. Simple search terms like 'crystal net print' will be best.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter

Former Member
0 Kudos

Hi,

Basic Information about Page Setup Dialog Box with .NET Controls:

1. To provide a Page Setup to your application, you can use the PageSetupDialog button from the Toolbox. The PageSetupDialog control is based on the PageSetupDialog class which derives from the CommonDialog class.

2. Displaying the Page Setup Printer dialog box also allows you and/or the user to customize the printing process if necessary. If you want to do this, you can use the PageSetupDialog.PrinterSettings property which is a value of the PrinterSettings class.

3. The options of the Page Setup dialog box depend on the driver of the printer selected in the Name combo box. The Page Setup dialog box allows the user to customize the appearance of the paper on which the document would be printed. On the Page Setup, the user can click the arrow of the Size combo box and select one of the configured sizes of paper. The characteristics of the paper are controlled by the PageSettings class.

--DJ