Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to print a table? #69

Open
JuanDa237 opened this issue Mar 29, 2024 · 2 comments
Open

How to print a table? #69

JuanDa237 opened this issue Mar 29, 2024 · 2 comments

Comments

@JuanDa237
Copy link

A method to print tables could be very usefull!

If u know a very good way of printing something like a table please help me.

image

@saper-2
Copy link

saper-2 commented Mar 30, 2024

@oatgh2
Copy link

oatgh2 commented Apr 20, 2024

Use escape character "\t" like that

//Defiine Header 
string table = "\tfooHeader\tbarHeader";

//Define Body
foreach(var item in items){
table += "\n\tfooItem\tbarItem"
}
printer.Append(table);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants