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

  • Home
  • SEARCH
  • 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 8744441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:50:28+00:00 2026-06-13T11:50:28+00:00

I have a print function in an application I made on CSharp. But I

  • 0

I have a print function in an application I made on CSharp. But I don’t like the way the document is formatted and its hard to specifically format the text to the printer or sort of like that.

Here is the way I format it. I hope there is a more dynamic and efficient way of doing this so that it could be compatible for all computers or laptop that use it.

  • 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-13T11:50:29+00:00Added an answer on June 13, 2026 at 11:50 am

    are you looking do something that would format the spaces already.. for example
    If I wanted to WriteLine(“** HELLO **);
    I would do something like this

    string s = new string( '*', 8 )
    WriteLine(s+ HELLO + s)
    

    so in your case you can follow this example and count out the number of spaces that you are wanting and if you need to make a few new String Variables to hold the different number of spaces plus it will be cleaner when reading.. this is a simple example

    string strSpaces = new string(' ', 20) for example.. 
    

    just play around with what you need

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

Sidebar

Related Questions

I have written a function to print database table to an array like this
I made an application and a dll, which are working this way: I have
I have a cakephp application made by previous employees, its structure is defined as
I have made a small function which should print some InfoPath files. It is
I have print method for html document in my application. I have no access
I have a sample class where I need to specialize the Print function if
I have something like this: function print_element($array, $field){ return Element: {$array[$field]}; } $array['name_en'] =
Say I have a decorator which causes the function to print out any exceptions
say I have this class: class animal { function noise() { print 'woof'; }
I have a foreach function which permits me to print fields in a database,

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.