Click here to Skip to main content
15,894,040 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
please help me.

I have created a new paper setting from "Server Properties".

When I preview crystal report it gives exact preview according to new paper setting but when I send it to print it prints on default printer setting.

There is another problem that my new paper settings does not show in paper size in Advance printing printing preference.

How do I set my customer paper which I have created to be set as default print paper size in advance printing preference options.
Posted
Updated 18-Aug-10 9:39am
v3
Comments
Dalek Dave 15-Aug-10 13:35pm    
Edited for Readability and Grammar.

 
Share this answer
 
Comments
justmine84 18-Aug-10 14:55pm    
Hi Manoj,

I have tried this solution. I am using Epson LX-300+ printer. I am facing a problem which is custom paper is adding to customer paper size and set it defualt. But when it prints it prints like a small receipt but printer eject whole A4 size paper.

Another problem is. I have created a new form from Server properties and set that to printer default paper size, but when i open report and check default printer then it again set back to A4 paper. I cross checked printers default setting from control panel, it shows correct settings(my new customer setting).

In the report when i select my custom setting which i have created from server properties and print. Printer eject only printed paper not the whole paper as in first problem.

Please help why my custom setting created from server properties not set to defualt in report print dialog and why "Adding Customer Paper size to named printer" code eject whole paper.

Please help.
See Here[^].

This should give you all you need to know.

You can select any of the printer preset sizes or define your own.
 
Share this answer
 
C#
if (e.Tool.Id == 5010)
            {
                Viewer.Document.Print(false, false, false);
            }



Add a button in viewer using this code

C#
DataDynamics.ActiveReports.Toolbar.Button _printbtn = new DataDynamics.ActiveReports.Toolbar.Button();

            //Add Save button to the toolbar
            _printbtn = new DataDynamics.ActiveReports.Toolbar.Button();
            _printbtn.ImageIndex = 1;

            _printbtn.Id = 5010;
            _printbtn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon;
            _printbtn.Caption = "Print";
            _printbtn.ToolTip = "Print Document";
            arvReport.Toolbar.Tools.Insert(1, (DataDynamics.ActiveReports.Toolbar.Tool)_printbtn);



In event handler if viewer
C#
if (e.Tool.Id == 5010)
            {
                Viewer.Document.Print(false, false, false);
            }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900