?
Solved

Richtextbox and max pages

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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…
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 Month7 days, 21 hours left to enroll

765 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