IronPrint はじめに Getting Started with IronPrint Curtis Chau 更新日:6月 10, 2025 Download IronPrint NuGet Download Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English IronPrint: .NET 用のオールインワン印刷ライブラリ IronPrint は Iron Software によって開発された印刷ライブラリです。 このライブラリは、Windows、macOS、Android、iOS を含むさまざまな環境に対応しています。 class="hsg-featured-snippet"> C# 印刷ライブラリ ドキュメントを印刷するための C# ライブラリのダウンロード PDF、PNG、HTML、TIFF、GIF、JPEG、IMAGE、BITMAP フォーマットに対応 印刷設定をカスタマイズ 印刷前にダイアログを表示 C# でライブラリの機能を無料で探索 互換性 IronPrint はクロスプラットフォームサポート互換性があります: .NET バージョンサポート C#, VB.NET, F# .NET 8, 7, 6, 5, および Core 3.1+ .NET Framework (4.6.2+) オペレーティングシステムおよび環境のサポート Windows (7+, Server 2016+) macOS (10+) iOS (11+) Android API 21+ (v5 "Lollipop") .NET プロジェクトタイプサポート モバイル (Xamarin & MAUI & Avalonia) デスクトップ (WPF & MAUI & Windows Avalonia) コンソール (アプリ & ライブラリ) インストール IronPrint ライブラリ IronPrint パッケージを NuGet パッケージ マネージャ経由でインストールします: dotnet add package IronPrint または、公式 IronPrint NuGet ウェブサイトから直接ダウンロードしてください。 インストールが完了したら、C# コードの先頭に using IronPrint; を追加して開始できます。 ライセンス キーの適用 次に、IronPrint に有効なライセンスまたは試用キーを適用するには、License クラスの LicenseKey プロパティにライセンス キーを割り当てます。 インポート文の直後に次のコードを追加し、IronPrint メソッドを使用する前に設定します: using IronPrint; // Apply your IronPrint license key here License.LicenseKey = "your-license-key-here"; using IronPrint; // Apply your IronPrint license key here License.LicenseKey = "your-license-key-here"; Imports IronPrint ' Apply your IronPrint license key here License.LicenseKey = "your-license-key-here" $vbLabelText $csharpLabel コード例 ドキュメント印刷 ファイル パスを Print メソッドに渡すだけで、ドキュメントを印刷できます。 using IronPrint; class Program { static void Main() { // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the Print method to print the document IronPrint.Print(filePath); } } using IronPrint; class Program { static void Main() { // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the Print method to print the document IronPrint.Print(filePath); } } Imports IronPrint Friend Class Program Shared Sub Main() ' Specify the file path to be printed Dim filePath As String = "document.pdf" ' Invoke the Print method to print the document IronPrint.Print(filePath) End Sub End Class $vbLabelText $csharpLabel ダイアログ付き印刷 ShowPrintDialog メソッドを使用してドキュメントを印刷します。これにより、印刷前に印刷ダイアログも表示されます。 using IronPrint; class Program { static void Main() { // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the ShowPrintDialog method to prompt the dialog before printing IronPrint.ShowPrintDialog(filePath); } } using IronPrint; class Program { static void Main() { // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the ShowPrintDialog method to prompt the dialog before printing IronPrint.ShowPrintDialog(filePath); } } Imports IronPrint Friend Class Program Shared Sub Main() ' Specify the file path to be printed Dim filePath As String = "document.pdf" ' Invoke the ShowPrintDialog method to prompt the dialog before printing IronPrint.ShowPrintDialog(filePath) End Sub End Class $vbLabelText $csharpLabel 印刷設定のカスタマイズ コードから印刷設定を構成するには、PrintSettings クラスをインスタンス化します。 PrintSettings オブジェクトを設定し、それを印刷メソッドの1つに渡します。 using IronPrint; class Program { static void Main() { // Create a PrintSettings object to configure printer settings PrintSettings settings = new PrintSettings { Copies = 2, Duplex = DuplexMode.Vertical, PageOrientation = PageOrientation.Landscape }; // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the Print method with custom print settings IronPrint.Print(filePath, settings); } } using IronPrint; class Program { static void Main() { // Create a PrintSettings object to configure printer settings PrintSettings settings = new PrintSettings { Copies = 2, Duplex = DuplexMode.Vertical, PageOrientation = PageOrientation.Landscape }; // Specify the file path to be printed string filePath = "document.pdf"; // Invoke the Print method with custom print settings IronPrint.Print(filePath, settings); } } Imports IronPrint Friend Class Program Shared Sub Main() ' Create a PrintSettings object to configure printer settings Dim settings As New PrintSettings With { .Copies = 2, .Duplex = DuplexMode.Vertical, .PageOrientation = PageOrientation.Landscape } ' Specify the file path to be printed Dim filePath As String = "document.pdf" ' Invoke the Print method with custom print settings IronPrint.Print(filePath, settings) End Sub End Class $vbLabelText $csharpLabel ライセンスとサポートの利用可能 IronPrint は有料ライブラリですが、ここで無料試用ライセンスも利用可能です。 Iron Software についての詳細情報は、ウェブサイトをご覧ください: https://ironsoftware.com/ さらなるサポートやお問い合わせについては、当社チームにお尋ねください。 Iron Software のサポート 一般サポートおよび技術的な問い合わせについては、次のメールアドレスにご連絡ください: support@ironsoftware.com。 Curtis Chau 今すぐエンジニアリングチームとチャット テクニカルライター Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。 準備はいいですか? Nuget ダウンロード 34,016 | バージョン: 2025.11 ただ今リリースされました 試用ライセンスキーがメールで送信されました。 総ダウンロード数: 34,016 ライセンスを見る