Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:36:39+00:00 2026-06-13T10:36:39+00:00

How can I print a field to a specific page location? For instance, I

  • 0

How can I print a field to a specific page location?
For instance, I have a printed form and I want to print data in those specific/delimited spaces.

I’ve seen some examples, but they do not apply to my need.

http://www.codeproject.com/Articles/10180/How-to-print-text-in-C

https://stackoverflow.com/questions/7703274/how-to-create-page-with-text-in-specific-location

The last one if wasn’t closed I think it’d have the answer.

Any ideas?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:36:40+00:00Added an answer on June 13, 2026 at 10:36 am

    If you have a paper form, you can scan it in, and convert it to a PDF form with a program like CutePDF. Next, create the fields you want to be able to fill in (by dragging rectangles), name them, and save the form. iTextSharp is a C# library that lets you fill in the form fields in a programmatic way.

    Example:

    //Replace with path to the form
    var pdfFormLocation = "C:\\pdfForm.pdf"; 
    
    //Adjust below path to a temp location
    var pdfPath = String.Format("C:\\temp\\{0}", Guid.NewGuid().ToString());
    File.Copy(pdfFormLocation, pdfPath, true);
    
    var reader = new PdfReader(pdfPath);
    var output = new FileStream();
    var stamper = new PdfStamper(reader, output);
    
    //the form field names can be a little hairy
    stamper.AcroFields.SetField("topmostSubform[0].Page1[0].f1_01_0_[0]", "Your Name");
    
    //make the form no longer editable
    stamper.FormFlattening = true;
    
    stamper.Close();
    reader.Close();
    //now you can go print this file from pdfPath
    

    Links:
    iTextSharp
    CutePDF

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok I have a form on my page where people enter specific data. Then
The JavaScript code window.print() can print the current HTML page. If I have a
So I gather I can render a specific element of the $page['content'] array like
I can't seem to get specific data from an array inside an object. $this->fields->adres
I want to keep the data inputted in a text box in my form
I have a fail2ban.log from which I want to grab specific fields, from 'Ban'
I want to sort the results according to a specific field AND THEN apply
You can truncate strings with a printf field-width specifier: printf(%.5s, abcdefgh); > abcde Unfortunately
How can I print the columns specified in fields_i_want instead of hardcoding the column
how can I paint all rows in a datagrid with the value of field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.