All Answers

0 votes

It looks like you´re redirected to your Login screen. What sort of authentication are you using?

Best regards
Frank

0 votes

Hello, Frank,
Thank you for getting back to us. The problem does not occur during project work. It happens after publishing on hosting. The gif I added will explain more clearly. Timer etc feature was not added.

GIF Url: https://freeimage.host/i/QZ0REb

0 votes

Hi Sergio,

I don´t think that this functionality is exposed directly but you might want to check out an extension that basically does the same thing:

https://github.com/iceteagroup/wisej-examples/tree/3.0/Html2Canvas

After getting the image you can scale it with standard .NET techniques to fit to your needs.

Best regards
Frank

  • Frank (ITG) answered Oct 10, 2022 - 11:27 am
  • last active Oct 10, 2022 - 5:10 pm
0 votes

Hi Sergio,

while the before mentioned solution works fine, there is an alternative approach that is using the original method that recreates the DOM rather than taking a screenshot.

I have attached a simple sample that you might want to adapt until it fits your needs.

Key code is this snippet here:

this.Eval($@"
 debugger;
 var widget = Wisej.Core.getComponent('id_{this.Control.Handle}');
 var thumbnailEl = wisej.utils.Widget.makeThumbnail(widget, {{width:{this.Width},height:{this.Height}}}, 'fit');
 this.getContentElement().getDomElement().appendChild(thumbnailEl);
 ");

Best regards
Frank

0 votes

Hi Kürsat,

are you using any timers in your application? What does flashing mean? The same as hitting F5?
Can you strip that down into a test case for us?

Best regards
Frank

0 votes

Hi Gerald,

it should be as simple in Wisej.NET as in WinForms

this.button1.Cursor = Cursors.Hand;

Does it work for a standard cursor for you and only fail for custom cursors? In any case a repro case would help a lot to track down that issue.

Best regards
Frank

0 votes
In reply to: Need Wisej dll file

Hi,

those 2 dlls have been replaced by Wisej.Framework.dll in later Wisej.NET versions.
We will also publish an updated guide for migration soon.

Best regards
Frank

0 votes

This may have been my fault actually, because I did some post-processing on the image after it was uploaded.

You must read the EXIF property from the original Image/Bitmap, store that property, and then re-apply it to any “New” Bitmaps or Images you create.

 

//Properties

public PropertyItem EXIForientation;//will be used to save future .bmp
public ushort isoEXIForientation;//stores the int value for debugging

public CustomImageResizer(string strFilename)
{
// Create a bitmap of the content of the fileUpload control in memory
originalBMP = new Bitmap(strFilename);

//Read EXIF orientation
EXIForientation = this.originalBMP.GetPropertyItem(0x0112);//274 = orientation.
//1 = Horizontal, 3 = Rotate 180 degrees , 6 = Rotate 90 degrees clockwise, 8 = Rotate 270 degrees clockwise
isoEXIForientation = BitConverter.ToUInt16(EXIForientation.Value, 0);
}

 

//Reapply

 

//Create a new bitmap which that holds the previous resized bitmap
using (var newBMP = new Bitmap(originalBMP, newWidth, newHeight))
{
newBMP.SetPropertyItem(this.EXIForientation);//reapply orientation

 

 

** Note that it will still appear rotated incorrectly in WiseJ and .NET PictureBox controls, because they do respect EXIF orientation.  Working on that next.

  • Andrew Niese answered Oct 7, 2022 - 8:17 pm
  • last active Oct 7, 2022 - 8:18 pm
0 votes

Yep, and one implementation on the javascript side can be seen here: https://stackoverflow.com/questions/19463126/how-to-draw-photo-with-correct-orientation-in-canvas-after-capture-photo-by-usin

I could also read the EXIF on Windows and perform a rotation there.  However, I’m wondering if there is a way to catch this or fix this on the HTML5 specification side….  it blows my mind that the browser does not upload the photo with the same orientation that the picture is taken…

 

 

0 votes

Hi Andrew,

not sure but this might be an Android issue. Common practice seems to be to read the exif data and rotate the image if necessary.

Best regards
Frank

0 votes

Adrean,

you can achieve this by using the Label property of your Textbox. Just set it to “inside”.

Best regards
Frank

0 votes

Hi Angelo,

For Linux, there’s a few dependencies that must be installed first!

You can find these HERE.

After that, it’s just a matter of building your application using the Publishing tool on Visual Studio.

Make sure that you set the Target Framework to NET6 and the Runtime to Linux_x64

After the application is build, you may need to copy over the Default.html, Default.json and Web.config and transfer everything to your target machine.

On Linux, the application can be run as a service all on itself, or you can use a web server like NGNIX.

HTH,

Alaa

0 votes

Hi Vincent,

we´re sorry to hear that. The platform that hosts our documentation is experiencing perfomance issues that have not yet been resolved.
So we are forced to change some of the API documentation and this is currently in progress.

I´ll let you know when the updated API documentation is available.

Best regards
Frank

0 votes

Hi Bjorn,

We just updated the documentation with a more in depth approach for migrating application from Wisej.NET 1.X to more recent versions.

HTH,

Alaa

0 votes

Great Alaa …

Helped a lot !!!

Thank you.

 

 

0 votes

Hi Marcelo,

Please take a look at the attached sample!

HTH,
Alaa

0 votes

Hi Alex,

Thank you for reporting this issue, we’ll investigate it and get back to you ASAP!

Best,
Alaa

0 votes

Hi Ruben,

Even though Wisej.NET is a Framework used primarily for Building Web-based applications, it can also be used to build simple websites.
I have attached a basic application to kickstart your journey!

Basically, using the Application’s hash part of the URL, you can redirect your application to display pages when handling the Application.HashChanged event.

Make sure to handle the Application.SessionTimeout event too, otherwise the Session Timeout pop-up will appear!

You can also pay a visit to our DemoBrowser, an application made specifically to demonstrate Wisej.NET’s many many capabilities!
It’s available HERE, and you can also check out its source code HERE.
HTH,
Alaa

0 votes

Hi Luca,

Any progress on this? Seems it still no ways to make it works, or is there any way to update the theme from bootstrap 4 to bootstrap 5 as default theme in our project?

Best,
Adrean

0 votes

Hi Luca,

Any progress on this? Seems it still no ways to make it works, or is there any way to update the theme from bootstrap 4 to bootstrap 5 as default theme in our project?

Best,
Adrean

Showing 1881 - 1900 of 11k results