簡體中文
English
首頁 | 產品 | 購買 | 下載試用 | 人才招聘 | 聯系我們
歡迎使用 Convert Agent API 開發接口
PrinterSettings API --- 打印機屬性參數控制接口。(免費)
您除了可以使用標準的GUI界面控制打印機屬性, 同時也可以通過我們提供的PrinterSettings API更加靈活的控制打印機屬性。

PrinterSettings API是一套免費的打印機屬性控制接口,但必須是FaxServer Printer 2.0 ( 含SmartPrinter 4.0 ) 以上核心的系列打印機才能支持此接口。

Example( VC++ ): PrinterSettings C++ library Interface
 
CPrinterSettings Seting("FaxServer Printer");

CPageSize dlg;
dlg.m_nWidth = Seting.GetPageWidth();
dlg.m_nHeight = Seting.GetPageHeight();
dlg.m_Orientation = Seting.GetPageOrientation() - 1 ;
dlg.m_nResolution = Seting.GetResolution() ;

if( dlg.DoModal() == IDOK )
{
Seting.SetPageWidth(dlg.m_nWidth);
Seting.SetPageHeight(dlg.m_nHeight);
Seting.SetPageOrientation((ORIENTATION)( dlg.m_Orientation + 1 ));
Seting.SetResolution((RESOLUTION)( dlg.m_nResolution ));
}

Example( C#.net ): PrinterSettings COM-Interface
 
PRINTERSETTINGSLib.PrinterSetting ps = new PrinterSetting();
ps.PrinterName = "FaxServer Printer";

PageSetting Dlg = new PageSetting();

Dlg.PageHeight.Text = ps.PageHeight.ToString();
Dlg.PageWidth.Text = ps.PageWidth.ToString();

if(ORIENTATION.LANDSCAPE == ps.PageOrientation)
Dlg.Landscape.Checked = true;
else
Dlg.Portrait.Checked = true;

Dlg.Resolution.SelectedIndex = Convert.ToInt32(ps.PageResolution);

if (DialogResult.OK == Dlg.ShowDialog())
{
ps.PageHeight = Convert.ToInt32(Dlg.PageHeight.Text);
ps.PageWidth = Convert.ToInt32(Dlg.PageWidth.Text);
ps.PageResolution = (RESOLUTION)Dlg.Resolution.SelectedIndex;
ps.PageOrientation = Dlg.Landscape.Checked ? ORIENTATION.LANDSCAPE : ORIENTATION.PORTRAIT;

}

ConvertAgent API提供2種接口供開發人員使用:

1.ConverAgent COM-Interface
2.C++ Library Interface

ConverAgent API Sample文檔轉換接口 調用范例:
見安裝目錄:

1.VC++Sample: FaxServerPrinter\SDK Examples\VC++\ConvertAgentDemo
2.VB COM Sample: FaxServerPrinter\ VB.NET(COM)\ConverAgentDemo
3.C# COM Sample: FaxServerPrinter\ C#.NET(COM) \ConverAgentDemo

版權所有 © 2003-2009 逸銘軟件科技有限公司. 贛ICP備05004422號-1 保留所有權利.
36选7中奖规则