Printing Defaults Apply button disabled

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
coralia_popa
Posts: 8
Joined: Thu May 17 2007

Printing Defaults Apply button disabled

Post by coralia_popa »

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
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

You will need to rephrase your question. I am unfortunately not sure what you are referring to.

Thanks
coralia_popa
Posts: 8
Joined: Thu May 17 2007

How to get the default page settings of the "Amyuni PDF

Post by coralia_popa »

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
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you calling SetDefaultConfig() after changing the paper settings?

If not please call this function.
coralia_popa
Posts: 8
Joined: Thu May 17 2007

Post by coralia_popa »

I'm not changing the page settings programaticaly, I change them from Control Panel/ Printers and Faxes/ Amyuni PDF Converter / Properties
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Which version of the PDF Converter are you using?
coralia_popa
Posts: 8
Joined: Thu May 17 2007

Post by coralia_popa »

PdfConverter 2.50
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Pressing Ok instead of apply should set the printer properties.
coralia_popa
Posts: 8
Joined: Thu May 17 2007

Post by coralia_popa »

Well that is my problem. If i press ok indeed the printer default properties remain those. But in a webservice are not those i've setted.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please give us some more information about you rapplication, what it does?

Thank you,

Joanna
coralia_popa
Posts: 8
Joined: Thu May 17 2007

Post by coralia_popa »

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;
}
Post Reply