Solved

Richtextbox and max pages

Posted on 1998-06-07
2
192 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

822 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