Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2004, 05:49 PM
BP BP is offline
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Labelprinting from ASP page

Hi all...
I have a problem that I know you know the answer to.
I want to have my ASP page that I fill with data from my database and print out the page so that it fits a certain sheet of labels.
Hope U know an answer...

Take care / BP

 
Old June 1st, 2004, 06:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

With the web, that may be a hard task to accomplish. However, I would recommend using a table layout and hard-code the width's of the table and the table data tag.

Brian
 
Old June 1st, 2004, 06:15 PM
BP BP is offline
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have been thinking the same way.
The label have a specific width, how can I translate cm to pixels?

/ BP

 
Old June 2nd, 2004, 06:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

Don't know; I'm sure you could find a converter on the web, but I'm not sure. You may even be able to specify cm as the width...

Brian
 
Old June 2nd, 2004, 05:51 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

photoshop will give you these translations

Wind is your friend
Matt
 
Old June 3rd, 2004, 03:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

In CSS, you can simply use centimeters for dimensions like width and height. For example:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>CSS Box</title>
    <style type="text/css">
    #MyBox
    {
        width: 6cm;
        height: 2cm;
        border: 1px solid black;
    }
    </style>
</head>
<body>
    <p id="MyBox">Hi, I am a bordered box.</p>
</body>
</html>
When you print this, you'll get a box with a black border. The box will be exactly 6 by 2 centimeters....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
Labelprinting from ASP page BP Classic ASP Professional 2 July 4th, 2004 02:00 PM
How to pass the variables in Aspx page to Asp Page jayaraj ASP.NET 1.0 and 1.1 Basics 3 May 23rd, 2004 06:55 AM
passing values from ASP page to a popup ASP Page astrosmurfboy Classic ASP Basics 3 April 21st, 2004 08:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.