Printing Defaults Apply button disabled
-
- Posts: 8
- Joined: Thu May 17 2007
Printing Defaults Apply button disabled
I have a web service in C# and I'm trying to get the default page settings, but I don't get them. After making some test I've noticed that the "Printing Defaults..." does not have the "Apply" button enabled even if I make some modifications.
Could it be that my problem?
Can you help me?
Thanks
Could it be that my problem?
Can you help me?
Thanks
-
- Posts: 8
- Joined: Thu May 17 2007
How to get the default page settings of the "Amyuni PDF
I have created a simple WebService that shows me the default page settings for a printer. But even if I change the default printer page for Amyuni Printer, I still get other defaults printer.
I have assumed it came from the fact that the Apply button from the "Printing Defaults" is disabled.
I have tested with other Printers and they have the apply button enabled when modifying some settings.
So my real question is how to get the default page settings of the "Amyuni PDF Converter" using a WebService
I have assumed it came from the fact that the Apply button from the "Printing Defaults" is disabled.
I have tested with other Printers and they have the apply button enabled when modifying some settings.
So my real question is how to get the default page settings of the "Amyuni PDF Converter" using a WebService
-
- Posts: 8
- Joined: Thu May 17 2007
-
- Posts: 8
- Joined: Thu May 17 2007
-
- Posts: 8
- Joined: Thu May 17 2007
My application want to print a pdf report based on some objects. The application call a webservice witch generates the pdf report and returns the bytes of the pdf file.
Our problem appear when we wanted to print landscape. Even if we change "default print page" the report is still genereted portrait.
Here a web service created separatly to test.
[WebMethod]
public string PrinterSettings(string PrinterName)
{
PrintDocument pd = new PrintDocument();
pd.PrinterSettings.PrinterName = PrinterName;
PageSettings pg = pd.DefaultPageSettings;
PrinterSettings ps = pg.PrinterSettings;
string result = string.Empty;
result += "\n\rPrinter Settings";
result += "\n\rPrinterName = " + pd.PrinterSettings.PrinterName;
result += "\n\rIs default Printer = " + ps.IsDefaultPrinter.ToString();
result += "\n\rIs plotter = " + ps.IsPlotter.ToString();
result += "\n\rIs printer valid = " + ps.IsValid.ToString();
result += "\n\rCan Duplex = " + ps.IsValid.ToString();
result += "\n\rNum copies = " + ps.Copies.ToString();
result += "\n\rMax Copies = " + ps.MaximumCopies.ToString();
result += "\n\rMax Page = " + ps.MaximumPage.ToString();
result += "\n\rMin Page = " + ps.MinimumPage.ToString();
result += "\n\rSupports Color = " + ps.SupportsColor.ToString();
result += "\n\r\n\rPage Settings";
result += "\n\rIs Color = " + pg.Color.ToString();
result += "\n\rTop Bound = " + pg.Bounds.Top.ToString();
result += "\n\rBottom Bound = " + pg.Bounds.Bottom.ToString();
result += "\n\rLeft Bound = " + pg.Bounds.Left.ToString();
result += "\n\rRight Bound = " + pg.Bounds.Right.ToString();
result += "\n\rTop Margin = " + pg.Margins.Top.ToString();
result += "\n\rBottom Margin = " + pg.Margins.Bottom.ToString();
result += "\n\rLeft Margin = " + pg.Margins.Left.ToString();
result += "\n\rRight Margin = " + pg.Margins.Right.ToString();
result += "\n\rLandscape = " + pg.Landscape.ToString();
result += "\n\rPaperSize = " + pg.PaperSize.PaperName;
result += "\n\rPaperSource = " + pg.PaperSource.SourceName;
result += "\n\rPrinterResolution = " + pg.PrinterResolution.Kind.ToString();
result += "\n\rPrinterResolution X = " + pg.PrinterResolution.X.ToString();
result += "\n\rPrinterResolution Y = " + pg.PrinterResolution.Y.ToString();
return result;
}
Our problem appear when we wanted to print landscape. Even if we change "default print page" the report is still genereted portrait.
Here a web service created separatly to test.
[WebMethod]
public string PrinterSettings(string PrinterName)
{
PrintDocument pd = new PrintDocument();
pd.PrinterSettings.PrinterName = PrinterName;
PageSettings pg = pd.DefaultPageSettings;
PrinterSettings ps = pg.PrinterSettings;
string result = string.Empty;
result += "\n\rPrinter Settings";
result += "\n\rPrinterName = " + pd.PrinterSettings.PrinterName;
result += "\n\rIs default Printer = " + ps.IsDefaultPrinter.ToString();
result += "\n\rIs plotter = " + ps.IsPlotter.ToString();
result += "\n\rIs printer valid = " + ps.IsValid.ToString();
result += "\n\rCan Duplex = " + ps.IsValid.ToString();
result += "\n\rNum copies = " + ps.Copies.ToString();
result += "\n\rMax Copies = " + ps.MaximumCopies.ToString();
result += "\n\rMax Page = " + ps.MaximumPage.ToString();
result += "\n\rMin Page = " + ps.MinimumPage.ToString();
result += "\n\rSupports Color = " + ps.SupportsColor.ToString();
result += "\n\r\n\rPage Settings";
result += "\n\rIs Color = " + pg.Color.ToString();
result += "\n\rTop Bound = " + pg.Bounds.Top.ToString();
result += "\n\rBottom Bound = " + pg.Bounds.Bottom.ToString();
result += "\n\rLeft Bound = " + pg.Bounds.Left.ToString();
result += "\n\rRight Bound = " + pg.Bounds.Right.ToString();
result += "\n\rTop Margin = " + pg.Margins.Top.ToString();
result += "\n\rBottom Margin = " + pg.Margins.Bottom.ToString();
result += "\n\rLeft Margin = " + pg.Margins.Left.ToString();
result += "\n\rRight Margin = " + pg.Margins.Right.ToString();
result += "\n\rLandscape = " + pg.Landscape.ToString();
result += "\n\rPaperSize = " + pg.PaperSize.PaperName;
result += "\n\rPaperSource = " + pg.PaperSource.SourceName;
result += "\n\rPrinterResolution = " + pg.PrinterResolution.Kind.ToString();
result += "\n\rPrinterResolution X = " + pg.PrinterResolution.X.ToString();
result += "\n\rPrinterResolution Y = " + pg.PrinterResolution.Y.ToString();
return result;
}