Solved

Richtextbox and max pages

Posted on 1998-06-07
2
189 Views
Last Modified: 2010-05-03
Hello all,

We are working on a project to print our own id cards.  I believe we are going to write our own interface to the camera and printer, as we would like to link to our main database thru ODBC and not have to download files and maintain in two areas.  Anyway, I was thinking a richtextbox control would be the best way to set up first a template
for the id card and also to print each specific id card once linked and created.  The user would only be allowed to edit/create the template, not the actual end result. But, I would like to limit the max pages to 1.  Set the paper size and margins, etc and I believe that the workspace would be the size I want.  But I would prefer to limit the user to one page of the right size (and to put a border around that space that can't be deleted).  I've tried to find some property or method that might allow this, but I can't seem to.  I also looked in the RTF specification v. 1.3 to see if there was some way of imbedding the max pages in the file, but again no luck.  Does anyone have a suggestion as to how to limit the richtext box to 1 page of text and graphics.

Thanks much
0
Comment
Question by:jamespaul
2 Comments
 
LVL 4

Accepted Solution

by:
zsi earned 200 total points
ID: 1462719
Have you considered either using a Word template file?

Better yet, why not just create a VB form that looks like the document.  Since they are just filling in blanks, you can have them enter text into text boxes. The form can llok exactly like the document and would solve all of your problems (at least those mentioned above).  

To print, you would just have to merge the fields in to the RTF file or your a Word document (or some other similar form-based application - Crystal Reports could do it), and print it.

RTF is still quite flaky.
0
 

Author Comment

by:jamespaul
ID: 1462720
Thanks zsi, I'm giving it a shot with a picturebox.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now