Profile Picture

NWatermark NImageFillStyle

Posted By Mike O'Ceirin 5 Years Ago

NWatermark NImageFillStyle

Author
Message
Mike O'Ceirin
Problem Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 22, Visits: 184
Using your documentation I do have this working but there is a problem. It is working on my desktop in a visual studio web form. I cannot get away from giving it an absolute reference to the graphics *.gif file. In the default.aspx page there can be a relative reference to "~/WaterMark.gif" but trying to apply the same file to Fillstyle I am forced to use "E:\\Development\\Production\\Energy Chart\\Energy Chart\\WaterMark.gif". When I publish this to the web it produces a black rectangle? It certainly looks all wrong. Essentially the control will not recognise the gif file that is part of the solution.

Reply
Nevron Support
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 3,055, Visits: 4,055

 Hi Mike,
You can try to convert the relative path to an absolute one using MapPathSecure:

this.MapPathSecure(this.TemplateSourceDirectory + "\\" + "someImage.gif");

for example, will give you the absolute path to "someImage.gif" located in the same directory as the current aspx page.

We hope this helps - let us know if you have any questions or meet any problems.



Best Regards,
Nevron Support Team






Similar Topics


Reading This Topic

1 active, 1 guest, 0 members, 0 anonymous.
No members currently viewing this topic!