このサイトでMicrosoftのコードテンプレートをこのスニペットとともに使用して、1行とフォームフィードのみを印刷しています。
string s = "Hello world!\xC"; //\xC means form feed
PrintDialog pd = new PrintDialog();
pd.PrinterSettings = new PrinterSettings();
if (DialogResult.OK == pd.ShowDialog(this))
{
RawPrinterHelper.SendStringToPrinter(pd.PrinterSettings.PrinterName, s);
}
しかし、運が悪いのですが、私の長い用紙サイズは常にA4用紙サイズの長さのようです。
私のコードの何が問題になっていますか?誰かがこの問題に対処するためのヒントやトリックを手に入れましたか?