[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Richtextbox and max pages

Posted on 1998-06-07
2
Medium Priority
?
202 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 600 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 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