Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
bill  
#1 Posted : Wednesday, September 27, 2006 2:14:27 AM(UTC)
bill

Rank: Member

Groups: Member
Joined: 9/27/2006(UTC)
Posts: 2

We're new purchasers of this product and i've been given this ball to carry. I've been asked to get the tool up and running for users to upload, edit, and save images. Just the basics. The Samples\QuickStartVB\ content is working fine, but has no active upload or save functionality. I can add that myself, and have, but now I am completely at a loss as to how to get the editor to use any picture other than 'redeye.jpg'. What am I missing?

I have searched everywhere i could think of, and though the devmanual offers up some code, it's very spare and doesn't work, even when i copy and paste word for word. i have tried working back through the various aspx, aspx.vb, ascx, and ascx.vb files, but I can't figure out where to make that change, so that it will have an effect.

I have edited the following line in the default.aspx file:
Code:
objEditor.OriginalPath = Server.MapPath("TestImages\redeye.jpg")

but that made no difference whatsoever. I have done global searches for other references to 'redeye.jpg' in the files and subfolders, but found nothing beyond the image itself in the TestImages folder.

I know I'm missing something incredibly basic, but I can't see the forest for the trees anymore.

And why isn't this clearly explained in the devmanual.pdf?

any help will be greatly appreciated. Again, i'm sure it's easy; I just can't see it.

Edited by user Tuesday, December 18, 2007 8:51:07 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Monday, October 2, 2006 6:53:17 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Modifying OriginalPath property of the Editor control is what you need. Could you post the codebehind of the page which hosts the PhotoEditor?
bill  
#3 Posted : Thursday, October 26, 2006 10:11:14 PM(UTC)
bill

Rank: Member

Groups: Member
Joined: 9/27/2006(UTC)
Posts: 2

I've tried editing the OriginalPath entry, but none of the changes I've made have taken effect.

Here's the codebehind page (default.aspx.vb)

As you can see, I've only edited the name of the image to a test.jpg image I placed there, but still no change. I don't even get an error. I simply get the stock redey.jpg image. What am I missing?



Code:
Namespace Aurigma.PhotoEditor.Samples

	Public Class MainForm
		Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

		'This call is required by the Web Form Designer.
		<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
			Me.ID = "MainForm"

		End Sub

		'NOTE: The following placeholder declaration is required by the Web Form Designer.
		'Do not delete or move it.
		Private designerPlaceholderDeclaration As System.Object
		Private objPhotoEditor As Editor

		Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
			'CODEGEN: This method call is required by the Web Form Designer
			'Do not modify it using the code editor.
			InitializeComponent()
		End Sub

#End Region

		Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
			Dim objEditor As Editor = Me.FindControl("editor")
			objEditor.MediumQualityDpi = 300
			objEditor.HighQualityDpi = 400
			objEditor.DebugMode = True
			objEditor.OriginalPath = Server.MapPath("TestImages\test.jpg")
			objEditor.BitmapManager = New Data.DefaultBitmapManager
			objEditor.TitleHtml = " "
		End Sub

	End Class

End Namespace

Edited by user Tuesday, December 18, 2007 8:51:27 PM(UTC)  | Reason: Not specified

Victor  
#4 Posted : Sunday, October 29, 2006 4:57:24 PM(UTC)
Victor

Rank: Member

Groups: Member
Joined: 10/3/2006(UTC)
Posts: 6

Have you rebuild the PhotoEditorProject?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.