CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Imagelink to PDF File

Print topic Send  topic

Author Message
gcosgrove

Posts: 1
Posted: 01/24/2005, 11:29 AM

I'm very new to CodeCharge Studio and have what I hope is a simple question.

I have a record form which display a record and one of the fields is "BegBates". I would like to add a "link" where the user can press a "button" or "link" of some type which will "open" a PDF file named BegBates.PDF stored in a /pdf directory on the server.

I assume that I should use either an imagelink or link button, but I'm not sure how/where to append the .PDF extension, etc.

ANY help would be greatly appreciated.
View profile  Send private message
peterr


Posts: 5971
Posted: 01/24/2005, 12:17 PM

You could probably use a Label as then you'd have full control over the label's content.
Take a look at this example to get the idea:
http://docs.codecharge.com/studio/html/QuickStart/Creat...rTextColor.html
http://docs.codecharge.com/studio/html/QuickStart/Creat...FieldValue.html

In your case you could probably use such code:
FormName.LabelName.Value = "<a href=""" & FormName.LabelName.Value & ".pdf"">" & FormName.LabelName.Value & ".pdf</a"

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.