Hello Everyone,
It is possible to print two documents in a single page in a printer.
We face a problem in our printer to print a image of one file and other document details please let me know how it is possible?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Juan Hines18 reputationPosted Jul 14, 2015, 12:02 AM EDT
var document = DocumentModel.Load("Sample Document.docx"); document.Sections[0].Blocks.Insert(0, new Paragraph(document, new Picture(document, File.OpenRead("Sample Image.png")))); document.Print();Rajeesh MenothRank #118 · 18.4K reputationPosted Jul 14, 2015, 12:20 AM EDT
Sandeep Dixit3 reputationPosted Jul 15, 2015, 8:45 PM EDT
Juan Hines18 reputationPosted Jul 16, 2015, 1:25 AM EDT
var workbook = ExcelFile.Load("Sample Book.xlsx"); var worksheet = workbook.Worksheets[0]; // Add new empty row. worksheet.Rows.InsertEmpty(0); // Set row's height equal to image's height. worksheet.Rows[0].SetHeight( System.Drawing.Image.FromFile("Sample Image.png").Height, LengthUnit.Pixel); // Add image. worksheet.Pictures.Add("Sample Image.png", "A1"); workbook.Print();Rtech Support For You14 reputationPosted Aug 1, 2015, 10:47 PM EDT