All Answers

0 votes

Hi HSoft,

Are you using a mobile viewport in your Default.html document or are you setting the size of the Desktop programmatically?

Any chance for a small test case?

Let me know!

Levie

0 votes

I got it to work,

Not sure what did it but I edited the default Json file and added the theme “Blue-1” . That’s all i changed.

Not sure why it was not in there from the beginning when i created the project.

0 votes

I’m not following – it does work locally on my DEV PC. The server is where the issue is.

Server is Windows 2012 Server with IIS – already running several WiseJ applications without issues.

0 votes

Hi Edmond,

Have you tried running the project with Local IIS instead of IIS Express to try to replicate the issue in VS?

  1. Run the project in Administrator mode
  2. Right Click Project and select Properties
  3. Select “Web”
  4. Switch “IIS Express” to “Local IIS”
  5. Run the project

 

A few things to check:

  1. Set a breakpoint in the Program.Main function to verify program entry
  2. Verify that Default.json “startup” has the correct namespace and path to Program.Main
  3. Open Chrome Developer tools and look for any issues in the debugger.

 

Let me know what you find after evaluating your program!

It would help if you could attach a small sample replicating the issue if possible.

 

Best,

Levie

0 votes

When I set combobox font value set 20 its work

  • HSoft answered Feb 18, 2020 - 7:36 pm
0 votes

Hi Florian,

following up on this we decided to add a ForeColor property to ToolBarButtons,
so you can set the color directly.

It´s logged as enhancement request #2165 and will be included in the next Wisej build.

I´ll notify you when it´s available.

Best regards
Frank

0 votes

No, it’s impossible. As I wrote all browsers block it without a direct user action. You need to attach a client event and execute the javascript code.

  • Luca answered Feb 18, 2020 - 12:15 am
0 votes

Thank you

I understand that you can’t set the clipboard in the browser from the server except IE11.
Are you planning to add a function to set the clipboard from the server to the browser other than IE11?

0 votes

can the PDF viewer bar be visible when on a mobile device? Reason being we would like to print the PDF from iPhone / iPad.

0 votes

One additional note, if someone else ever stumbles on this. The downside of changing the field input type to text was that on mobile devices it now brings up the keyboard when you click in the field, instead of the number pad. But after reading the link Luca provided, I decided to try “Tel” as the input type, and now get both the select all and the number pad when the cell goes in to edit mode.

Thanks again for the help!

0 votes

You cannot use the Crystal Reports windows forms viewer on the web. Use the PdfViewer instead like this:

 var report = new ReportDocument();
 report.FileName = Application.MapPath("CrystalReport1.rpt");
 this.pdfViewer1.PdfStream = report.ExportToStream(ExportFormatType.PortableDocFormat);

 

 

  • Luca answered Feb 17, 2020 - 7:19 pm
  • last active Feb 17, 2020 - 7:20 pm
0 votes

You need to use the PdfViewer. The CR viewer for winforms cannot in the browser. In alternative you can use the CR ASP.NET viewer. I find the PdfViewer to be much better than the ASP.NET viewer.

This is all you need:

 var report = new ReportDocument();
 report.FileName = Application.MapPath("CrystalReport1.rpt");
 this.pdfViewer1.PdfStream = report.ExportToStream(ExportFormatType.PortableDocFormat);

 

  • Luca answered Feb 17, 2020 - 7:18 pm
  • last active Feb 17, 2020 - 7:19 pm
0 votes

Wow thank you! I didn’t realize that, but that’s exactly what it was.

 

Thank you for your help!

0 votes

InputType.Number doesn’t support text selection in the browser: https://html.spec.whatwg.org/multipage/input.html#do-not-apply

I tried in a small sample with standard text fields and tabbing does select the full text.

  • Luca answered Feb 17, 2020 - 6:39 pm
0 votes

You cannot set the clipboard in the browser from the server. All browsers (maybe except IE) block the action.

See

https://wisej.com/support/question/how-to-use-text-from-clipboard

https://wisej.com/support/question/read-from-clipboard

The call

Wisej.Web.Clipboard.SetClientText(“text clipboard”);

Transfers  the data to the client. Then you need to call Wisej.Core.copy() to set the browser’s clipboard in a client event. The best way is a button with a client event “execute”, calling Wisej.Core.copy().

The server call Wisej.Web.Clipboard.SetClientText(“text clipboard”) calls Wisej.Core.copy(text) so in case the browser allows it it also sets the clipboard. But now all browsers block it so you need the client event.

You may also skip Wisej.Web.Clipboard.SetClientText(“text clipboard”) and just call Wisej.Core.copy(text) in your client event.

HTH

 

 

 

  • Luca answered Feb 17, 2020 - 6:32 pm
0 votes

Please see the screenshot of ASPNetReportViewer project, I have downloaded from Support Link to use ReportViewer control but the project is opening up as normal Windows application.

0 votes

Yes sir, it is set to EditOnEnter currently. I also tried firing dataGridView.BeginEdit(true) from the cell enter event. I tried using beginEdit with different edit modes on the grid. None of these attempts worked.

If it’s at all relevant, I have the input type on the cellTextBox set to numeric.

0 votes

Hi Nick,

did you try setting the DataGridViews EditMode to “EditOnEnter” ?

Best regards
Frank

0 votes

Hi Geoff,

you can download the templates here:

http://wisej.s3.amazonaws.com/downloads/Templates/2_1/Templates.zip

Please unzip them into

C:\users\<youruser>\documents\Visual Studio 20xx\Templates

Best regards
Frank

0 votes

Hi Florian,

you can use e.g. the following mixin and assign “button-green” as appearance key.

{
 "appearances":
 { 
   "button-green":
   {
     "inherit": "button",
     "states": 
   {
     "default": 
     {
       "properties":
       {
         "cursor": "pointer",
         "opacity": 1,
         "padding": [5, 5, 5, 5],
         "textColor": "green"
       },
       "styles": 
       {
          "width": [1, 1, 1, 1],
          "color": "transparent",
          "backgroundColor": "transparent"
       }
     },
     "hovered": 
     {
       "styles": 
       {
         "backgroundColor": "hotTrack"
       }
     }, 
     "disabled": 
     {
       "properties": 
       {
         "opacity": 0.5,
         "cursor": "default"
       }
     }
   }
 }
 }
}

Hope that helps,
Frank

Showing 5141 - 5160 of 11k results