473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

serialize/deserialize Access report object

I'd like to automate delivery of new Report objects to my users (note:
NOT published reports -- the report *objects* themselves.) I could
fairly easily write code to capture the appropriate properties of the
report and write it to a file, and then code on the other side to read
the file and create a report. E.g.,

<REPORT>
<NAME>My Report</NAME>
<CONTROLS>
<CONTROL>
<NAME>Label1</NAME>
<TYPE>acLabel</TYPE>
<POSITION>1,1</POSITION>
</CONTROL>
....

and so on. It strikes me, though, that someone must have written this
code already. I've googled around a bit, but can't find anything. Any
help?

Thanks,

g.

Dec 24 '05 #1
4 2404
Graham wrote:
I'd like to automate delivery of new Report objects to my users (note:
NOT published reports -- the report *objects* themselves.) I could
fairly easily write code to capture the appropriate properties of the
report and write it to a file, and then code on the other side to read
the file and create a report. E.g.,

<REPORT>
<NAME>My Report</NAME>
<CONTROLS>
<CONTROL>
<NAME>Label1</NAME>
<TYPE>acLabel</TYPE>
<POSITION>1,1</POSITION>
</CONTROL>
...

and so on. It strikes me, though, that someone must have written this
code already. I've googled around a bit, but can't find anything. Any
help?

Thanks,

g.


Access has built in (though undocumented) functions for this.

SaveAsText(ObjectType as Long, ObjectName As String, FileName As String)

LoadFromText(ObjectType as Long, ObjectName As String, FileName As String)

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Dec 24 '05 #2
Outstanding (the functions) and astounding (that they're not
documented).

Thanks a lot!

Dec 24 '05 #3
"Graham Charles" <gr****@aiid.com> wrote
Outstanding (the functions) and astounding (that
they're not documented).


Not so astounding. It is very common for software to include undocumented
functionality -- undocumented is also "unsupported", and often means "not
thoroughly tested". It is (as I would guess these to be, because they have
been around for a long time) often for the use of that software's
developers, or something that "didn't quite make the release".

Larry Linson
Microsoft Access MVP
Dec 24 '05 #4
On Sat, 24 Dec 2005 20:06:00 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:

These are probably the exception of the "not tested" rule, since they
are used by the SourceSafe integration.

-Tom.
"Graham Charles" <gr****@aiid.com> wrote
Outstanding (the functions) and astounding (that
they're not documented).


Not so astounding. It is very common for software to include undocumented
functionality -- undocumented is also "unsupported", and often means "not
thoroughly tested". It is (as I would guess these to be, because they have
been around for a long time) often for the use of that software's
developers, or something that "didn't quite make the release".

Larry Linson
Microsoft Access MVP


Dec 24 '05 #5

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

Similar topics

7
by: Ian Tompsett | last post by:
H I was wondering if it possible for an object to serialize/deserialize itself from XML. I'd be guessing that it would need to use the XmlSerializer class, but that seems to want to create a...
14
by: vince | last post by:
Can I add (append) to an xml file that already contains a serialized object, and be able to deserialize to either or both objects from the same file...??? How is this done...?? thanks, vince
5
by: David Sworder | last post by:
Hi, I've created a UserControl-derived class called MyUserControl that is able to persist and subsequently reload its state. It exposes two methods as follows: public void Serialize(Stream...
0
by: Fred Heida | last post by:
Hi Al, i have a funny problem.. i you can call it funny.. what i have is 2 assemblies, the first one does nothing other then Application.Run(new MyForm())
3
by: Jerry | last post by:
Hi, I have a class like the following: class A { private B _b; A (B b) { _b = b; } ...
0
by: John Manion via .NET 247 | last post by:
Long Post, thanks for your patience... I have and XML file that looks something like this: <?xml version="1.0" encoding="utf-8" ?> <Settings> <Location> <X>30</X> <Y>40</Y> </Location>...
1
by: Rick Luckwell | last post by:
I have 3 collections(reports, services, charts) of objects(report, service, chart) that are nested with each other. When I serialize the object the output only contains reports and services but...
4
by: Hone | last post by:
I'm trying to serialize/deserialize the XML for an RSS 1.0 Feed (i.e. RDF) and the root element, as required by the standard, looks like this: <rdf:RDF ...> </rdf:RDF> However, I've tried...
4
by: =?Utf-8?B?Qnlyb24=?= | last post by:
When I try to serialize an instance of the LocationCell below (note Building field) I get an error in the reflection attempt. If I remove the _Building field it serializes fine. I tried renaming...
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I am using dotnet remoting with a binarry formatter. I have a property that returns a memorystream that has had a file loaded into it. When I try to access this property though I get an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.