473,618 Members | 3,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking reliable Add-In or other solution to create RTF files from A97 & A2.0???

MLH
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.
Nov 12 '05 #1
11 2205
"MLH" <CR**@NorthStat e.net> wrote in message
news:53******** *************** *********@4ax.c om...
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.


It's not something I would want to do a lot of, but for a few reports I had where
even Snapshot Format was sometimes dropping data I used the File I/O commands to loop
through my query and write my own data and RTF tags to a file and then attach that
file to an Email. I had to find a copy of the RTF spec on the internet and also
experimented quite a bit with making simple RTF documents in WordPad and then
examining the tags in NotePad.

Each report was a bit of an undertaking, but the result was a fast and perfect RTF
document. Quite a bit smaller than the other formats as well. I found I could even
include embeded images with this method which was another bonus.
Nov 12 '05 #2
MLH
Sounds promising... would you be willing to share some of the
fruits of your labors. It seems as though it'll be quite a project.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxx
On Wed, 17 Sep 2003 12:50:32 -0500, "Rick Brandt" <RB*****@Hunter .Com>
wrote:
"MLH" <CR**@NorthStat e.net> wrote in message
news:53******* *************** **********@4ax. com...
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.


It's not something I would want to do a lot of, but for a few reports I had where
even Snapshot Format was sometimes dropping data I used the File I/O commands to loop
through my query and write my own data and RTF tags to a file and then attach that
file to an Email. I had to find a copy of the RTF spec on the internet and also
experimented quite a bit with making simple RTF documents in WordPad and then
examining the tags in NotePad.

Each report was a bit of an undertaking, but the result was a fast and perfect RTF
document. Quite a bit smaller than the other formats as well. I found I could even
include embeded images with this method which was another bonus.


Nov 12 '05 #3
"MLH" <CR**@NorthStat e.net> wrote in message
news:dd******** *************** *********@4ax.c om...
Sounds promising... would you be willing to share some of the
fruits of your labors. It seems as though it'll be quite a project.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxx


It's more time-consuming than difficult. Start out with a routine that just writes
all of the data for your report to a standard text file. This will still involve
adding line returns and tab characters etc., to get a basic layout that looks like a
report rather than a table. Once you have that you modify the procedure to add an
RTF header tag at the top of the file. Mine looks like this...

{\rtf1\ansi
\paperh15840\pa perw12240
\margl720\margr 720\margt720\ma rgb720\psz1

{\colortbl
\red0\green0\bl ue0;
\red255\green25 5\blue255;
\red255\green0\ blue0;
\red0\green255\ blue0;
\red0\green0\bl ue255;}

{\fonttbl
\f0\fcharset0\f nil Arial;
\f1\fcharset0\f nil Arial Narrow;}

Here is an example then of a Report Header...
{\pard\plain\qc \fs36\b\f0\cf0\ cb1ENGINEERING DEVIATION {\par}}

If you paste the two strings above into a NotePad file and then open it with WordPad
you will see the header and how I have specified a font, font size, font color, and
made the paragraph centered. The building of the document just progresses from
there. Your original routine that created a simple text file just needs to have
appropriate RTF Tagging added in at the appropriate locations to produce the layout
and look desired.

You just want to take it a step at a time and verify after each change. One of the
hardest things is making sure that every opening brace "{" has a corresponding
closing brace "}" and at the proper location. Otherwise you get incorrect output (or
no output at all). Obviously some report designs would lend themselves to this
method easier than others.
Nov 12 '05 #4
> You just want to take it a step at a time and verify after each change. One of the
hardest things is making sure that every opening brace "{" has a corresponding
closing brace "}" and at the proper location. Otherwise you get incorrect output (or
no output at all). Obviously some report designs would lend themselves to this
method easier than others.


Of course, you could write a stupid function to count the open and
close braces and see if the count for the two match... Something
along the lines of
Function CountOccurrence s(byval strSearchChar as string, byval strText
as string) As Long

dim lngPos as long 'position in string

for lngPos = 1 to len$(strText)
if mid$(strText,ln gPos,1)=SearchC har then
CountOccurrence s=CountOccurren ces+1
end if
next lngPos

End Function

if CountOccurrence s("{",strText)< >CountOccurrenc es("}",strText ) Then
Msgbox "Too many..."
else
Msgbox "Good to go"
End if
Nov 12 '05 #5
MLH
Great suggestions, guys. Thx a lot.
Nov 12 '05 #6
MLH
On Wed, 17 Sep 2003 12:50:32 -0500, "Rick Brandt" <RB*****@Hunter .Com>
wrote:
"MLH" <CR**@NorthStat e.net> wrote in message
news:53******* *************** **********@4ax. com...
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.


It's not something I would want to do a lot of, but for a few reports I had where
even Snapshot Format was sometimes dropping data I used the File I/O commands to loop
through my query and write my own data and RTF tags to a file and then attach that
file to an Email. I had to find a copy of the RTF spec on the internet and also
experimented quite a bit with making simple RTF documents in WordPad and then
examining the tags in NotePad.

Each report was a bit of an undertaking, but the result was a fast and perfect RTF
document. Quite a bit smaller than the other formats as well. I found I could even
include embeded images with this method which was another bonus.

I like the idea of embedding the images. That'll come in handy.
Nov 12 '05 #7
MLH <CR**@NorthStat e.net> wrote in message news:<53******* *************** **********@4ax. com>...
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.


MLH,

I don't have Access 2.0 around, but in my 97 and 2k-version the
rtf-export facility is available and seems to work when I test
something and open the results in Win 98 Wordpad. What is so
unreliable about it ?
I don't do this normally, but I think it would be a very useful option
for distributing reports.

Marc
Nov 12 '05 #8
"Marc" <M.***********@ uva.nl> wrote in message
news:ae******** *************** ***@posting.goo gle.com...
MLH <CR**@NorthStat e.net> wrote in message

news:<53******* *************** **********@4ax. com>...
Anyone tried something reliable. Need to implement
sol'n to reliably create RTF's of Access reports readable
by WordPad.


MLH,

I don't have Access 2.0 around, but in my 97 and 2k-version the
rtf-export facility is available and seems to work when I test
something and open the results in Win 98 Wordpad. What is so
unreliable about it ?


Total loss of all graphical objects (not necessarily a big problem depending on the
report).

Imperfect implementation of tab positions.

The horizontal real estate requirements are not the same for phrases in the Access
Report versus the same phrases in Word. This leads to the following problems:

Following the same rules as word-wrap, words at the far right of controls can be
truncated. If even one letter won't fit, the entire word is dropped. Making all
controls wider than they need to be in Access "might" avoid this one.

Any control that has CanGrow enabled can experience truncation of entire lines.

Extra Line-Returns inserted into the content usually leaving just one or two words on
the previous line.

Troubleshooting these problems is complicated by the fact that the issues vary from
record to record, report to report, and might even be influenced by the default
printer driver being used by the person doing the export. I have definitely seen
cases where user A would produce an RTF report that looked ok, while user B's output
of the identical report would suffer loss of data.

AFAIK the only way to avoid the above problems is to use a mono-spaced font like
Courier. I can't even be positive about that as I never tested it thoroughly. The
main problem found in my investigation of this is that Word tends to use a slightly
narrower (or is it wider?) space character for a given font than the Access report.
Actual characters seem to be sized the same. I "assume" that this would not be the
case with a mono-spaced font which would then avoid the problem. Most users though
find mono-spaced fonts too unattractive to want to use them.

Nov 12 '05 #9
MLH
On Fri, 19 Sep 2003 07:54:21 -0500, "Rick Brandt" <RB*****@Hunter .Com>
wrote:
AFAIK

I concur totally. Personally, I get the dropped lines, as all my
controls are enabled for CS/CG.
Nov 12 '05 #10

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

Similar topics

1
2011
by: clutterjoe | last post by:
Anyone know of a commercial classified ad script that has a shopping cart module for (real time or manual CC processing ok)? TIA!
4
13268
by: Papa Legba | last post by:
I'm looking for a Seeking pure CSS horizontal menu with sub-menus which drop down on mouse over. Compatible with as many browsers as possible. Any ideas?
0
1470
by: Andrew Pasetti | last post by:
Hello, There is a document on msdn that describes how to send an email using webdav and vb.net (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_esdk_sending_a_message_webdav.asp). However, it does not mention how to add attachments to the message. Perhaps someone can suggest how to add an attachment to the message. Your advice will be greatly appreciated.
2
1838
by: Jason Brown | last post by:
I can't find any javascript that displays a banner according to a user's country. Is this not possible? If not javascript then maybe php or ssi displayed into a page via an iframe. Does anyone know of a free script that shows a banner according to country? Jason
5
1533
by: Edwinah63 | last post by:
Hi everyone, i was wondering if anyone else had observed this and if there is any workaround or patch. i have some screens (an mdi child forms) with the buttons &Add, &Edit, &Save and E&xit, the idea being that the user can use Alt+A, Alt+E etc etc when any screen loads, Add, Edit and Exit are enabled.
0
1258
by: Jsobel | last post by:
Hi all: I downloaded this new Personal Audio Link app. They issued a press release looking for beta testers, with a compensation offer of 6 months free Vonage service for qualified testers. I'm posting this because they are seeking more beta testers, particularly seeking "power-users" who understand the technology.
0
1456
by: John_Gradian | last post by:
Hi all: I downloaded this new Personal Audio Link app. They issued a press release looking for beta testers, with a compensation offer of 6 months free Vonage service for qualified testers. I'm posting this because they are seeking more beta testers, particularly seeking "power-users" who understand the technology.
0
1490
by: John_Gradian | last post by:
Hi all: I downloaded this new Personal Audio Link app. They issued a press release looking for beta testers, with a compensation offer of 6 months free Vonage service for qualified testers. I'm posting this because they are seeking more beta testers, particularly seeking "power-users" who understand the technology.
4
1566
by: John Grant | last post by:
If I build a web services today with VS 2005 does it support reliable messaging? If I use WSE 3.0 will it support reliable messaging? If I don’t have reliable messaging can I make a web method call that does not reach the web service? If so, what does the call do? Timeout, hang? thanks
1
2981
by: =?Utf-8?B?S2F1c2hhbCBNZWh0YQ==?= | last post by:
Hi, I am facing the ServerTooBusyException when using reliable session and net.tcp binding. I have single server and single client application. The client registers for the event at the server. When event occurs server send the message to the client indicating event occurance. The event is generated at a rate of 1 event/min. So, I do not think the error is because of continous firing of events, such that server gets loaded with it.
0
8212
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
8153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
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
8595
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...
1
6101
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
5552
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
4065
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
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1760
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.