473,395 Members | 1,474 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,395 software developers and data experts.

saving prtdevmode in table

Hi there,
I want to be able to save the PrtDevmode en Prtdevnames properties of
several reports into a table. So I open a report in Design mode, get
the prtdevmode en prtdevname from the report, tuern it into a string
and save them to Memo fields in a table. So far so good.

But then I want to get the prtdevmode and prtdevname out of the table
and save it into the report again. Then it goes wrong. When I look in
the table at first I only see part of the string, until I select the
whole field, and then I can see the whole string. There are squares in
the string. When extracting the prtdevmode and prtdevname I get only
the part of the string until the first square. Everything after that
doesn't come out of the table.
I'm pretty sure that's where the crux of the problem lies.
Does anyone have any suggestions how I can get the whole string out of
the table again?

It's getting to be very frustrating.
Thanks
Esmee
Nov 12 '05 #1
2 2543
TC
The PrtDev* structures contain binary data - not ordinary string data. They
will inevitable look strange if you store them into a text column. The ideal
column type would be BINARY. But I don't have Access here to check, so I'm
not sure whether you can define a binary column directly from the user
interface.

As a matter of interest, *why* do you want to store the PrtDev* values?

HTH,
TC
"Esmee" <g.********@inspektor.nl> wrote in message
news:2e**************************@posting.google.c om...
Hi there,
I want to be able to save the PrtDevmode en Prtdevnames properties of
several reports into a table. So I open a report in Design mode, get
the prtdevmode en prtdevname from the report, tuern it into a string
and save them to Memo fields in a table. So far so good.

But then I want to get the prtdevmode and prtdevname out of the table
and save it into the report again. Then it goes wrong. When I look in
the table at first I only see part of the string, until I select the
whole field, and then I can see the whole string. There are squares in
the string. When extracting the prtdevmode and prtdevname I get only
the part of the string until the first square. Everything after that
doesn't come out of the table.
I'm pretty sure that's where the crux of the problem lies.
Does anyone have any suggestions how I can get the whole string out of
the table again?

It's getting to be very frustrating.
Thanks
Esmee

Nov 12 '05 #2
Thanks TC, you put me on the right track.
The reason I want to be able to store PrtDev* values is so that my
clients don't have to change the printer settings of reports every
time I send them a new version of my db.
Bye
Esmee

"TC" <a@b.c.d> wrote in message news:<1066966987.768140@teuthos>...
The PrtDev* structures contain binary data - not ordinary string data. They
will inevitable look strange if you store them into a text column. The ideal
column type would be BINARY. But I don't have Access here to check, so I'm
not sure whether you can define a binary column directly from the user
interface.

As a matter of interest, *why* do you want to store the PrtDev* values?

HTH,
TC
"Esmee" <g.********@inspektor.nl> wrote in message
news:2e**************************@posting.google.c om...
Hi there,
I want to be able to save the PrtDevmode en Prtdevnames properties of
several reports into a table. So I open a report in Design mode, get
the prtdevmode en prtdevname from the report, tuern it into a string
and save them to Memo fields in a table. So far so good.

But then I want to get the prtdevmode and prtdevname out of the table
and save it into the report again. Then it goes wrong. When I look in
the table at first I only see part of the string, until I select the
whole field, and then I can see the whole string. There are squares in
the string. When extracting the prtdevmode and prtdevname I get only
the part of the string until the first square. Everything after that
doesn't come out of the table.
I'm pretty sure that's where the crux of the problem lies.
Does anyone have any suggestions how I can get the whole string out of
the table again?

It's getting to be very frustrating.
Thanks
Esmee

Nov 12 '05 #3

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

Similar topics

0
by: Gabriele Bertolucci | last post by:
Sorry for my previous post in italian language. It was a cut 'n paste problem :-) ============================================================================ Do you know how to reach and use...
5
by: Randy Harris | last post by:
I'm finding working with PrtDevMode a nightmare. Is there any particular reason that Microsoft didn't simply provide a PrinterName argument for printing a report? That seems like a pretty...
0
by: Phil Stanton | last post by:
I have a report the size is A5 landscape. I need to get the page dimensions using VBA. If I open the report in PrintPreview I get Using the well documented with such expressions as...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
1
by: Paul H | last post by:
Say I have a table called tblPeopleInfo, one of the fields in the table is called FavouriteFruit. The FavouriteFruit field is a lookup field and will contain Apples, Oranges, Grapes etc..The list...
2
by: jess | last post by:
Hi All, I am using the PrtDevMode property of a report open in design view to try and flip the orientation of the report between Portrait and Landscape in a user control box before the report is...
14
by: MLH | last post by:
GHudson has working procedures posted at http://www.access-programmers.co.uk/forums/showthread.php?t=66320 They work. Relationships, however, and some minor default settings are not preserved....
2
by: veerleverbr | last post by:
Hi, Can anyone give me sample code on how to use de info in PrtDevMode en PrtDevNames of Access from within VB.NET? This is how it's done in VB6:...
2
by: jessDMiller | last post by:
I have no clue why the data from the form isn't saving into the database. What am I doing wrong? addAnnounce.php: <td align=top> <form action="index2.php" method="post">Heading:<br...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...
0
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.