Solved

Richtextbox and max pages

Posted on 1998-06-07
2
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

695 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