Page 1 of 1

Text Editor Formatting

PostPosted: Sat Jun 16, 2007 6:02 pm
by Modnway
Hello all!
I am trying to create a price sheet using NBs Text Editor, but am having trouble properly formating it. :cry:
What I want to do is create a price sheet or menu with 2 colums. Both the left and right columns having the item descriptions and item price. The problem I am having is when I look at it in the editor it looks fine, but in the print view, the words wrap down. I need it to print exactly like I created it in the Text editor.

What I did is create a table and used a seperate row for each. I filled it in lining up each description in one cell and prices in the next cell to the right. the prices are right side justified so that it looks like they are on a decimal tab. . I figured this would keep things lined up but it is not the case. I would like to be able to print at 8.5x11.0
The ruler does not seem to properly represent the page.

How can I set up things so that it will print as shown.
does anyone have any good examples?

Thanks to everyone who posts on the forums, I have learned so much from all your examples :!:

PostPosted: Sun Jun 17, 2007 9:37 am
by Wrangler
You may have to adjust the widths of the tables to avoid the wrapping. Depending on the font you use, it doesn't always display the way it should. Have you tried actually printing a copy? If the article page size is set to 8.5x11, it should print properly, if you account for the margins. I have found in the past that I have to play with it to get it to display correctly.

You may also get better results by creating the rtf in MS Word first.

I used to print invoices using rtf, but have since switched to html, using:

FileWrite "[pubdir]invoice.html" "All" "[html]"
BrowserGoTo "WebBrowser3" "[pubdir]invoice.html"
BrowserPrint "WebBrowser3" "PrintPreview"

[html] variable would contain the source code obtained from the html invoice you created. You can use any html editor to do this. A bit more work, but the results are much nicer, and with html you have more flexibility in your design.

PostPosted: Sun Jun 17, 2007 7:51 pm
by Modnway
Wrangler,
thanks for the help.

I would think the Text Editor should print properly what is shown on the screen, maybe something for Dave to look into.

I tried different ways with tables but still no good, I tried creating my price sheet in MS Word first and tried to import into the TE but would not work. Seems like a pretty simple thing to do...BUT.

The html route seems like a good way to go, do you now of a good editor
you could recommend that's really good with tables. Should I maybe use a plugin to view and print?

Thanks again

PostPosted: Mon Jun 18, 2007 8:19 am
by Wrangler
The rtf editor in Neobook has never been 100%. But I don't think it's Dave's fault. RTF is a intimidating format. You may want to take a look at this free plug Editor's Toolbox:

http://www.neosoftware.com/neobook/modu ... d=9&lid=40

The html method has worked really well for me. I use a wysiwyg editor called WYSIWYG Web Builder. It uses a fixed layout with css. It is a little quirky in some things, but it makes it easy to whip out quick html. When done, just view the html, and copy and paste. And you can develop and see it in real time. Just include any variables in it you need. Neobook will fill in the variables when you filewrite the html. You may have to play with it a little bit to get it situated right.

http://www.wysiwygwebbuilder.com/

Using the browserprint action in Neobook, you can choose to show a nice print preview window.

PostPosted: Mon Jun 18, 2007 7:54 pm
by Modnway
Thanks again Wrangler,
I really appreciate the help! I will check out Editor's Toolbox and WYSIWYG Web Builder.
I will inform you of my progress.