473,724 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display of long text

hi!!!

i need to display a disclaimer which is two page in length in a word
document. i also need to format the text. the idea is something as
follows

on opening the application, a form which serves as splash screen with
the disclaimer of the application is shown. now the problem i am
running into is in the display of the disclaimer which is really two
page long and it should be formatted too. using a textbox seems not
possible as it doesn't accomodate the whole of disclaimer. the control
in which the disclaimer is to be displayed need to have vertical
scrollbar. i don't have rich textbox. is there anyway i can do it using
any other control. can it be done using subform or subreport?

there is another weird problem i am facing and this is related to main
form and a linked subform. both the main and subform are bound forms.
the subform is linked to main form by using the masterkey and child
key. the weird thing i notice is that when any data is entered in the
subform which entering any data in the mainform the record get saved in
the subform without any valid related record being saved in the main
table leading to orphan record. how do u control and set it in such a
way that only if a record is being saved in the main table (from the
main form), the data entered in the subform need to be stored in the
related table, when no data is entered in the mainform and if any data
is entered in the subform it shouldn't be stored.

thanx in advance. have a great day

bala

Nov 13 '05 #1
11 4654
On 21 Feb 2005 11:09:10 -0800, "bala" <ba*****@gmail. com> wrote:

Rich textbox comes with Windows. You should have it.
An alternative is a Webbrowser control; comes with IE.

Your database design needs to be enhanced. Build a referential
integrity link between the parent table and the child table, and check
the box to enforce it. Also the foreign key value in the child table
should typically be a required field.

-Tom.

hi!!!

i need to display a disclaimer which is two page in length in a word
document. i also need to format the text. the idea is something as
follows

on opening the application, a form which serves as splash screen with
the disclaimer of the application is shown. now the problem i am
running into is in the display of the disclaimer which is really two
page long and it should be formatted too. using a textbox seems not
possible as it doesn't accomodate the whole of disclaimer. the control
in which the disclaimer is to be displayed need to have vertical
scrollbar. i don't have rich textbox. is there anyway i can do it using
any other control. can it be done using subform or subreport?

there is another weird problem i am facing and this is related to main
form and a linked subform. both the main and subform are bound forms.
the subform is linked to main form by using the masterkey and child
key. the weird thing i notice is that when any data is entered in the
subform which entering any data in the mainform the record get saved in
the subform without any valid related record being saved in the main
table leading to orphan record. how do u control and set it in such a
way that only if a record is being saved in the main table (from the
main form), the data entered in the subform need to be stored in the
related table, when no data is entered in the mainform and if any data
is entered in the subform it shouldn't be stored.

thanx in advance. have a great day

bala


Nov 13 '05 #2

bala wrote:
hi!!!

i need to display a disclaimer which is two page in length in a word
document. i also need to format the text. the idea is something as
follows

on opening the application, a form which serves as splash screen with
the disclaimer of the application is shown. now the problem i am
running into is in the display of the disclaimer which is really two
page long and it should be formatted too. using a textbox seems not
possible as it doesn't accomodate the whole of disclaimer. the control in which the disclaimer is to be displayed need to have vertical
scrollbar. i don't have rich textbox. is there anyway i can do it using any other control. can it be done using subform or subreport?
Put an OLE frame on your form?
there is another weird problem i am facing and this is related to main form and a linked subform. both the main and subform are bound forms.
the subform is linked to main form by using the masterkey and child
key. the weird thing i notice is that when any data is entered in the
subform which entering any data in the mainform the record get saved in the subform without any valid related record being saved in the main
table leading to orphan record. how do u control and set it in such a
way that only if a record is being saved in the main table (from the
main form), the data entered in the subform need to be stored in the
related table, when no data is entered in the mainform and if any data is entered in the subform it shouldn't be stored.

Declare referential integrity between the two tables. Then if you try
to enter child data without an existing parent record, the insert will
automatically fail.

Nov 13 '05 #3
well the referential integrity is declared (that is checking the
enforce referencial integrity in the relationship) but it still doesn't
work

Nov 13 '05 #4
hey tom

how do i get to access rich textbox with windows.

well as i replied to earlier post the referential integrity is being
enforced but the foreign key value in the child table is not a required
field, must it be made required cos i thought referential integrity
declaration should be enough.

bala

Nov 13 '05 #5
well the referential integrity is declared (that is checking the
enforce referencial integrity in the relationship) but it still doesn't
work

Nov 13 '05 #6
hey tom

how do i get to access rich textbox with windows.

well as i replied to earlier post the referential integrity is being
enforced but the foreign key value in the child table is not a required
field, must it be made required cos i thought referential integrity
declaration should be enough.

bala

Nov 13 '05 #7
On 21 Feb 2005 14:49:34 -0800, "bala" <ba*****@gmail. com> wrote:

On the Toolbox, click on the last button (toolbox plus 3 dots), and
scroll down to Microsoft Rich Text Control.

-Tom.

hey tom

how do i get to access rich textbox with windows.

well as i replied to earlier post the referential integrity is being
enforced but the foreign key value in the child table is not a required
field, must it be made required cos i thought referential integrity
declaration should be enough.

bala


Nov 13 '05 #8
On 21 Feb 2005 14:49:34 -0800, "bala" <ba*****@gmail. com> wrote:

On the Toolbox, click on the last button (toolbox plus 3 dots), and
scroll down to Microsoft Rich Text Control.

-Tom.

hey tom

how do i get to access rich textbox with windows.

well as i replied to earlier post the referential integrity is being
enforced but the foreign key value in the child table is not a required
field, must it be made required cos i thought referential integrity
declaration should be enough.

bala


Nov 13 '05 #9
Tom the MS RTF control is included with the MS Development platforms.
There is a free RTF control here:
http://www.lebans.com/richtext.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Tom van Stiphout" <no************ *@cox.net> wrote in message
news:7s******** *************** *********@4ax.c om...
On 21 Feb 2005 14:49:34 -0800, "bala" <ba*****@gmail. com> wrote:

On the Toolbox, click on the last button (toolbox plus 3 dots), and
scroll down to Microsoft Rich Text Control.

-Tom.

hey tom

how do i get to access rich textbox with windows.

well as i replied to earlier post the referential integrity is being
enforced but the foreign key value in the child table is not a requiredfield, must it be made required cos i thought referential integrity
declaration should be enough.

bala


Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9061
by: David Thomas | last post by:
Hi there, a while ago, I posted a question regarding reading japanese text from a text file. Well, since I solved the problem, I thought I'd post my solution for the benefit of other people with the same problem. The plan was to make a script to read and display japanese text. I will use it for making a japanese proverb script and for a japanese language study script.
4
4137
by: hoke | last post by:
I want to display plain text files in the browser. The files contain html and javascript and have a .txt extension. This works fine with files with just html. Unfortunately when showing files with javascript, I get an "error on page" warning and the page is not displayed. I suppose that when Internet Explorer discovers a <script> tag he starts to interpret it. This is not what I want. After all Internet Explorer is a browser and not an...
3
7191
by: Adam | last post by:
I have an ASP page that will take form info that a user has entered, then save it into SQL server, and retrive and display the info on another page. My problem is with long text data (10,000 bytes or more). It appears to save the long text data, as in it gives no errors... but it does not save it. In the SQL table, the field is defined as ntext... So why won't it save? Thanks in advance, adam
1
2175
by: Paul Thakur | last post by:
I am writing vbscript code in an .asp page. I need to display field values from a sql table consisting of several fields, one of them is of type "Long Text". This field contains XML data. I like to be able to assign vale of this field to a variable, display it and write out a text file using file streaming object. When I set a variable to this field, the data is truncated. I am using "Recordset" object, is that not an appropriate type to...
4
7249
by: Tigrou | last post by:
Hello, In a Oracle Database i have text who are stored, this text are in RTF format, you can see an example below: {\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fnil Verdana;}{\f2\fnil\fcharset2 Symbol;}} \viewkind4\uc1\pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\fi-200\li200\sb100\sa100\f0\fs24 Jusqu'\'e0 22 ppm en noir... I would like display this text in an...
0
1387
by: Doots | last post by:
Hello, Since 2 months i'm looking for a solution for display rtf text in an aspx page. The only component who can do it is RichTextBox but it's too expensive. Then if anyone know a solution for display RTF text in a ASPX page or at least how convert RTF text in HTML code it will be great ! The RTF text that i want display is stored in this format (RTF format): {\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\froman\fcharset0...
1
6716
by: Tracey | last post by:
Hi, there My application requires to display multiline text in the cell of datagrid. I set the preferredheight of datagrid's tablsstyle, however, it is fixed. For text longer than that, the rest of text is cut missing. Can someone tell me how to do that? thanks.
3
3897
by: jiayanxiang | last post by:
Is there any sample code to use Javascript to load and display a text file? It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the file name will be fine as well. Once a text file is selected, I just need to display it in a text box. Thanks for the help.
1
1155
by: JJ | last post by:
I am writing instruction to accompany my 'sendNewsletter' page. In the text I want to instruct the user that by writing <%username%> in the text, this placeholder will be replaced by the recipients username. But how do I display the text '<%username%>' without the server replacing it with the current username? I could make it as am image, but is there an easier way?
8
5586
rblaettler
by: rblaettler | last post by:
I have two div's with a float:left attribute that I've put into a list. They should align horizontally, which they do as long as the text in them does not need to be wrapped. As soon as the area for the float gets too small, IE wraps the text, but FF drops the div below the other before it starts to wrap the text. This is not exactly what I want. I could use absolute positioning, but that leads to other issues and is not really what I wanna do...
0
8868
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9241
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8062
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2612
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.