All Answers

0 votes

[The “custom viewer” error maybe a problem with Visual Studio. I don’t know what it means to open a datatable while debugging.]

It’s not a Visual Studio error, because it only happens with Wisej.

To reproduce the error just create a Datatable (here I do it with a query select)

DataTable oSelect = Leo.mytable(“select * from customer”);

If you block the execution and try to see the contents of the Datatable, as you see in the attachment, you receive the error (I translated it from Italian)

0 votes

Use “d”  as the format, see https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

The “custom viewer” error maybe a problem with Visual Studio. I don’t know what it means to open a datatable while debugging.

  • Luca answered Nov 8, 2023 - 3:17 pm
0 votes

You have to download it. Look at the Application.Download methods in the docs. There is also a client file system api (it’s documented on mozilla) that you may use but requires additional permissions.

in general browsers don’t have access to client resources without the proper javascript api.

  • Luca answered Nov 8, 2023 - 1:35 pm
0 votes

Hi,

Looks like you have WebSockets disabled? you can verify that by checking the Console in DevTools or checking Application.IsWebSocket.

If that’s the case, you’ll need to do the following modifications:

private async void upload1_Uploaded(object sender, UploadedEventArgs e)
{
Application.StartPolling(100);
await ProcessUploadAsync(e);
Application.Update(this, () =>
{
MessageBox.Show("Upload completed…");

Application.EndPolling();
});
}

HTH,
Alaa

0 votes

You need to use Application.Update()
Documentation: https://docs.wisej.com/api/wisej.web/general/application#update-context-action

You could do it like this:
private async void upload1_Uploaded(object sender, UploadedEventArgs e)
{
await ProcessUploadAsync(e);
MessageBox.Show(“Upload completed…”);
Application.Update(this);
}

But ideally, you would put the MessageBox call inside the Application.Update() call to insure that the UI is updated when the call ends.

private async void upload1_Uploaded(object sender, UploadedEventArgs e)
{
await ProcessUploadAsync(e);
Application.Update(this, () => { MessageBox.Show(“Upload completed…”); });

}

0 votes

Hi Tuan,

this is fixed in Wisej.NET 3.2.7 that was just released.

Best regards
Frank

0 votes

Thanks for the sample. If it helps, the mixin from your sample does work to turn node text red when selected- as long as the HTML isn’t affecting the text color.

For example, if you use HTML to underline the text, your mixin will turn it red on hover:

treeView1.Nodes.Add(new TreeNode("<span style= \"text-decoration: underline\">Node 1</span>") {AllowHtml = true});

  • Julie(ITG) answered Nov 3, 2023 - 9:17 pm
  • last active Nov 3, 2023 - 9:19 pm
1 vote

Hi Carl,

Wisej.NET AutoUpdater has been deprecated a while ago.

Wisej.NET now comes in 2 parts: One is the nuget packages, which you apparently updated already.
The other is a Microsoft Visual Studio extension.

In order to get you up and running, please deinstall your current Wisej.NET version from the control center.
Then go to this page and download and install the latest Wisej.NET VSIX:

https://wisej.com/builds

Best regards
Frank

0 votes

I tried this before.

This approach only works for normal nodes (without html).

Please see my example.

0 votes

If you are using the ThemeBuilder to edit your themes, you will notice that under “Tree Node” there is an option for “textColor” under “selected”
The JSON for it would look something like this:


"tree-folder": {
"text": "Tree Node",
"components": {
"states": {
"default": {
"properties": {
"textColor": "",
"indent": 18,
"icon": "icon-folder",
"opacity": 1,
"padding": [2, 0, 2, 0]
},
"styles": {
"backgroundColor": null
}
},
"hovered": {
"styles": {
"backgroundColor": "hotTrack"
},
"properties": {
"cursor": "pointer"
}
},
"selected": {
"properties": {
"textColor": "YOURCOLORHERE"
},
"styles": {
"backgroundColor": "highlight"
}
},

 

0 votes

Hi Daniel,

You can create a custom Theme, or write a Theme Mixin.

A Mixin basically overwrites the appearance on any Theme you choose, and it would make sense to use it for your use case since you’re going to target a single control.

For more information, please check out our documentation https://docs.wisej.com/theme-builder/getting-started/edit-a-mixin

Best,
Alaa

0 votes
In reply to: Control alignment

Sorry but I don’t understand, I start from your standard project, this is automatically inserted in my Web.config:
<add key=”Wisej.DefaultTheme” value=”Bootstrap-4″/>
I don’t change anything at all, but to follow your instructions I added (but I don’t understand what it’s for) the line in the code:
Application.LoadTheme(“Bootstrap-4”);
How can I use two different themes? Remember that they are always in Visual Studio, not on the server. You just sent me directions to change the theme, but I don’t do it.
Where am I wrong, if I’m wrong?
Thank you.
Francesco

0 votes
In reply to: Control alignment

Hi Francesco,

you’re using a different theme at design time vs runtime.

Find more information here:

https://docs.wisej.com/docs/concepts/theming

Best regards
Frank

PS: You can delete obj/bin folders before uploading here.

0 votes

I ran your sample and was able to reproduce- looks fine when running from Visual Studio but the top of the toolbar gets cut off when deployed to IIS. We’ll look into this.

0 votes

Set the Size and do not set AutoSize to true. Also set the Autoscaling to None, the default I believe if Font which autoscales if you change the font of the panel at runtime to something different than the original one. There is no dpi scaling since dpi scaling makes no sense in a browser.

When you set the Size nothing in Wisej.NET will change the size of your control. The only properties that change it are Anchors and Dock but you should set those unless you want to alter the size based on the container’s layout engine.

https://docs.wisej.com/docs/concepts/layouts

  • Luca answered Oct 31, 2023 - 4:56 pm
0 votes

In Add New Item you will find the Visual Studio templates. If they are not registered make sure you have installed the vsix correctly. Otherwise follow the standard Visual Studio troubleshooting for missing templates. We collected some of the most common methods here: https://docs.wisej.com/docs/getting-started-1/troubleshooting

  • Luca answered Oct 31, 2023 - 1:15 pm
  • last active Oct 31, 2023 - 4:37 pm
1 vote

Hi Tuan,

thanks for reporting this. It’s confirmed as a bug and we’re currently investigation how to fix it.

Best regards
Frank

0 votes

Rendering the report to a pdf is the best solution.

If you want to use the Crystal Report ASP.NET viewer you can. Wrap it in a AspNetPanel.

We don’t create reporting tools or viewers. Don’t forget that Crystal Reports is basically deprecated.

In any case, this is not a Wisej.NET issue.

 

  • Luca answered Oct 31, 2023 - 1:11 pm
0 votes

This is a Workaround, but not ideal solution:

string cReport = “myreport.rpt”;

CrystalDecisions.CrystalReports.Engine.ReportDocument myReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
myReport.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA5;
myReport.Load(cReport);

myReport.SetParameterValue(“var1”, “Value variable 1”);
myReport.SetParameterValue(“var2”, “Value variable 2”);
myReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, “test.pdf”);

pdfViewer1.PdfSource = “test.pdf”;

0 votes

Just a quick note that Wisej.NET 3.2.6 was released today.

Best regards
Frank

Showing 1001 - 1020 of 11k results