Hi Tiziano,
Launch the application using the command prompt, but add —urls http://*:5000 as an additional parameter.
So it’s something like: WisejWebApplication1.exe ——urls http://*:5000
It’s a standard ASP.NET Core deployment, not a Wisej.NET issue!
HTH,
Alaa
Hi Gerald,
thanks for getting back on this and providing a test case.
There is one minor bug in your code as you´re checking for RadioButton2 twice. If you change the last occurrence to RadioButton3 and also switch to this code, building a cursor from a bitmap works fine if you supply the image:
ElseIf RadioButton3.Checked = True Then 'Use bitmap as icon Dim bmCur As New Bitmap(60, 60) Dim g As Graphics = Graphics.FromImage(bmCur) g.FillRectangle(Brushes.Transparent, 0, 0, 60, 60) g.DrawEllipse(Pens.Red, 10, 10, 40, 40) g.DrawEllipse(Pens.Red, 0, 0, 60, 60) g.DrawEllipse(Pens.Red, 30, 30, 1, 1) g.DrawEllipse(Pens.Red, 25, 25, 10, 10) Dim ptrCur As IntPtr = bmCur.GetHicon Dim cur As Cursor 'cur = New Cursor(ptrCur) cur = New Cursor(bmCur)
I will check in more detail why providing the IntPtr from a Loaded cursor won´t work yet.
Best regards
Frank
Hi Frank,
Sorry for the delay! I uploaded a test case. System cursors work fine. I want to create custom cursors as I have on previous projects,
I appreciate your insight!
Gerry
Hi Ruben,
Do you still need help with this?
Best,
Alaa
Hi Ala
We have succesful deployed our first appliaction on linux thank your suggestion.
Now we have one bug.
Afert the page is showed, few minutes after, an application error message is showed.
I have attached the screenshot.
Have you suggestion?
Thanks.
I only query the user via SQL.
In fact, the application is very simple, after verification it redirects to the home page without holding credentials. Situations such as user control are not included in the project. The project shows no problems in debug mode.
Cari,
I´m not 100% if I understood correctly. Are you aiming to make your application responsive?
Then please take a look at Responsive Properties. They work with the core Wisej.NET.
If that is not what you´re looking for, please explain in more details.
Best regards
Frank
It looks like you´re redirected to your Login screen. What sort of authentication are you using?
Best regards
Frank
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
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
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
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
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
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
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.
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…
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
Adrean,
you can achieve this by using the Label property of your Textbox. Just set it to “inside”.
Best regards
Frank
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
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