Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Trying to Create Custom Spell Checking Feature but keep running into roadblocks. Argument 1: cannot convert from 'System.IO.MemoryStream' to 'string' Argument 2: cannot convert from 'System.Drawing.Imaging.ImageFormat' to 'Tesseract.ImageFormat?'

C# Trying to Create Custom Spell Checking Feature but keep running into roadblocks. Argument 1: cannot convert from 'System.IO.MemoryStream' to 'string' Argument 2: cannot convert from 'System.Drawing.Imaging.ImageFormat' to 'Tesseract.ImageFormat?'

Scheduled Pinned Locked Moved C#
csharpjsonhelpc++asp-net
6 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Texas Tundra
    wrote on last edited by
    #1

    My code is failing and not sure how to correct the issue at hand. Please help.

    Aspose.PDF {24.7.0} FormDrivenPDF_SpellCheck
    BitMiracle.LibTiff.NET {2.4.649} FormDrivenPDF_SpellCheck
    DocumentFormat.OpenXml {3.0.2} FormDrivenPDF_SpellCheck
    DocumentFormat.OpenXml.Framework {3.0.2} FormDrivenPDF_SpellCheck
    DotNetZip {1.16.0} FormDrivenPDF_SpellCheck
    Google.Protobuf {3.23.0} FormDrivenPDF_SpellCheck
    Grpc {2.46.6} FormDrivenPDF_SpellCheck
    Grpc.Core {2.46.6} FormDrivenPDF_SpellCheck
    Grpc.Core.Api {2.62.0} FormDrivenPDF_SpellCheck
    Grpc.Net.Client {2.62.0} FormDrivenPDF_SpellCheck
    Grpc.Net.Common {2.62.0} FormDrivenPDF_SpellCheck
    IronPdf {2024.7.8} FormDrivenPDF_SpellCheck
    IronPdf.Extensions.ASPX {2023.10.3} FormDrivenPDF_SpellCheck
    IronPdf.Native.Chrome.Windows {2024.7.65} FormDrivenPDF_SpellCheck
    IronPdf.Slim {2024.7.8} FormDrivenPDF_SpellCheck
    IronSoftware.Common {2024.1.7} FormDrivenPDF_SpellCheck
    IronSoftware.Native.PdfModel {2024.7.65} FormDrivenPDF_SpellCheck
    IronSoftware.System.Drawing {2024.7.2} FormDrivenPDF_SpellCheck
    itext {8.0.4} FormDrivenPDF_SpellCheck
    itext.commons {8.0.4} FormDrivenPDF_SpellCheck
    itext7 {8.0.4} FormDrivenPDF_SpellCheck
    Microsoft.Bcl.AsyncInterfaces {8.0.0} FormDrivenPDF_SpellCheck
    Microsoft.DotNet.PlatformAbstrac... {2.0.4} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configuration {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.DependencyI... {8.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.DependencyI... {8.0.1} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.DependencyM... {2.0.4} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.FileProvide... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.FileProvide... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.FileSystemG... {6.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Logging {8.0.0} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Logging.Abs... {8.0.1} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Options {8.0.2} FormDrivenPDF_SpellCheck
    Microsoft.Extensions.Primitives {8.0.0} FormDrivenPDF_SpellCheck
    Newtonsoft.Json {13.0.3} FormDrivenPDF_SpellCheck
    NHunspell {1.2.5554.16953} FormDrivenPDF_SpellCheck
    PDFsharp {6.1.1} Form

    OriginalGriffO 1 Reply Last reply
    0
    • T Texas Tundra

      My code is failing and not sure how to correct the issue at hand. Please help.

      Aspose.PDF {24.7.0} FormDrivenPDF_SpellCheck
      BitMiracle.LibTiff.NET {2.4.649} FormDrivenPDF_SpellCheck
      DocumentFormat.OpenXml {3.0.2} FormDrivenPDF_SpellCheck
      DocumentFormat.OpenXml.Framework {3.0.2} FormDrivenPDF_SpellCheck
      DotNetZip {1.16.0} FormDrivenPDF_SpellCheck
      Google.Protobuf {3.23.0} FormDrivenPDF_SpellCheck
      Grpc {2.46.6} FormDrivenPDF_SpellCheck
      Grpc.Core {2.46.6} FormDrivenPDF_SpellCheck
      Grpc.Core.Api {2.62.0} FormDrivenPDF_SpellCheck
      Grpc.Net.Client {2.62.0} FormDrivenPDF_SpellCheck
      Grpc.Net.Common {2.62.0} FormDrivenPDF_SpellCheck
      IronPdf {2024.7.8} FormDrivenPDF_SpellCheck
      IronPdf.Extensions.ASPX {2023.10.3} FormDrivenPDF_SpellCheck
      IronPdf.Native.Chrome.Windows {2024.7.65} FormDrivenPDF_SpellCheck
      IronPdf.Slim {2024.7.8} FormDrivenPDF_SpellCheck
      IronSoftware.Common {2024.1.7} FormDrivenPDF_SpellCheck
      IronSoftware.Native.PdfModel {2024.7.65} FormDrivenPDF_SpellCheck
      IronSoftware.System.Drawing {2024.7.2} FormDrivenPDF_SpellCheck
      itext {8.0.4} FormDrivenPDF_SpellCheck
      itext.commons {8.0.4} FormDrivenPDF_SpellCheck
      itext7 {8.0.4} FormDrivenPDF_SpellCheck
      Microsoft.Bcl.AsyncInterfaces {8.0.0} FormDrivenPDF_SpellCheck
      Microsoft.DotNet.PlatformAbstrac... {2.0.4} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configuration {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Configurati... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.DependencyI... {8.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.DependencyI... {8.0.1} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.DependencyM... {2.0.4} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.FileProvide... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.FileProvide... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.FileSystemG... {6.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Logging {8.0.0} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Logging.Abs... {8.0.1} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Options {8.0.2} FormDrivenPDF_SpellCheck
      Microsoft.Extensions.Primitives {8.0.0} FormDrivenPDF_SpellCheck
      Newtonsoft.Json {13.0.3} FormDrivenPDF_SpellCheck
      NHunspell {1.2.5554.16953} FormDrivenPDF_SpellCheck
      PDFsharp {6.1.1} Form

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Dumping a pile of code on us and saying "it don't work" doesn't help anyone: we have no idea where in that code the error might be occurring and no way to run it to find out. To help normal humans read it, I've edited your question and added code blocks to separate the files and preserve the formatting but you should check that I didn't mess something up - particularly as your indentation is inconsistent! We can't tell you "do this" and it'll fix it: start by looking at the error message closely as it'll tell you where in that the error occurs. You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes we forget to close a string or a code block. Sometimes the cat walks over your keyboard and types something really weird. Sometimes we just forget how many parameters a method call needs. We all make mistakes. And because we all do it, we all have to fix syntax errors - and it's a lot quicker to learn how and fix them yourself than to wait for someone else to fix them for you! So invest a little time in learning how to read error messages, and how to interpret your code as written in the light of what the compiler is telling you is wrong - it really is trying to be helpful! So read this: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^] - it should help you next time you get a compilation error! And spending a little time learning to understand syntax error messages will save you a huge amount of time in future: you waited at least 1/4 hour for Chris to reply, then your email system probably added another 10 minutes or so, plus the time it took you to type up the question once you had found this site and created an account. Chances are that you could have saved a significant chunk of that time if you knew how to read them! I'm not saying we don't want to help you fix them - sometimes I can't see my own errors because I read what I meant to write - but fixing syntax errors is part of the job, and if you can't do it for yourself people are going to look at you as a bit weird should you get a job in the industry!

      "I have no idea what I di

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      T 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Dumping a pile of code on us and saying "it don't work" doesn't help anyone: we have no idea where in that code the error might be occurring and no way to run it to find out. To help normal humans read it, I've edited your question and added code blocks to separate the files and preserve the formatting but you should check that I didn't mess something up - particularly as your indentation is inconsistent! We can't tell you "do this" and it'll fix it: start by looking at the error message closely as it'll tell you where in that the error occurs. You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes we forget to close a string or a code block. Sometimes the cat walks over your keyboard and types something really weird. Sometimes we just forget how many parameters a method call needs. We all make mistakes. And because we all do it, we all have to fix syntax errors - and it's a lot quicker to learn how and fix them yourself than to wait for someone else to fix them for you! So invest a little time in learning how to read error messages, and how to interpret your code as written in the light of what the compiler is telling you is wrong - it really is trying to be helpful! So read this: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^] - it should help you next time you get a compilation error! And spending a little time learning to understand syntax error messages will save you a huge amount of time in future: you waited at least 1/4 hour for Chris to reply, then your email system probably added another 10 minutes or so, plus the time it took you to type up the question once you had found this site and created an account. Chances are that you could have saved a significant chunk of that time if you knew how to read them! I'm not saying we don't want to help you fix them - sometimes I can't see my own errors because I read what I meant to write - but fixing syntax errors is part of the job, and if you can't do it for yourself people are going to look at you as a bit weird should you get a job in the industry!

        "I have no idea what I di

        T Offline
        T Offline
        Texas Tundra
        wrote on last edited by
        #3

        Thank you for the reply. And yes totally understand the lack of describing the issue and not providing the codes in blocks for each CS form. That is my bad this is not my main career actually far from it as I am a piping designer. I have very little programing knowledge but eager to learn. This is my very 1st attempt at writing C# and thought I had done good just to get to where I was. I will try and not bother the forum with questions as much as possible. And will look at the reference information you provided. :^)

        OriginalGriffO 1 Reply Last reply
        0
        • T Texas Tundra

          Thank you for the reply. And yes totally understand the lack of describing the issue and not providing the codes in blocks for each CS form. That is my bad this is not my main career actually far from it as I am a piping designer. I have very little programing knowledge but eager to learn. This is my very 1st attempt at writing C# and thought I had done good just to get to where I was. I will try and not bother the forum with questions as much as possible. And will look at the reference information you provided. :^)

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Texas-Tundra wrote:

          I will try and not bother the forum with questions as much as possible.

          We are fine with questions - provided you show us you have tried - just try to remember that we only get what you type! :laugh: Use code blocks to mark code and it becomes a lot more readable - edit your original question and you'll see what I did; there is a "code" button above the text box which will do it for you. And show us relevant fragments of you code, not the whole thing - it makes it a lot more likely that someone will read it and try to help. Hopefully, you are on a course or following a book to learn this stuff rather than random guesses or *shudder* YouTube "tutorials"?

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          T 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Texas-Tundra wrote:

            I will try and not bother the forum with questions as much as possible.

            We are fine with questions - provided you show us you have tried - just try to remember that we only get what you type! :laugh: Use code blocks to mark code and it becomes a lot more readable - edit your original question and you'll see what I did; there is a "code" button above the text box which will do it for you. And show us relevant fragments of you code, not the whole thing - it makes it a lot more likely that someone will read it and try to help. Hopefully, you are on a course or following a book to learn this stuff rather than random guesses or *shudder* YouTube "tutorials"?

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            T Offline
            T Offline
            Texas Tundra
            wrote on last edited by
            #5

            Well actually I am using the school of Google and ChatGTP. I did way back in 2004 take a semester of .lisp and .vba. But they really do not translate well into this. But I am probably going to look into some online learning courses. Being in Houston there is a lot of training schools and online classes.

            OriginalGriffO 1 Reply Last reply
            0
            • T Texas Tundra

              Well actually I am using the school of Google and ChatGTP. I did way back in 2004 take a semester of .lisp and .vba. But they really do not translate well into this. But I am probably going to look into some online learning courses. Being in Houston there is a lot of training schools and online classes.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              Quote:

              I am using the school of Google and ChatGTP

              Don't do it like that, please. Trouble is that unless you know something exists, you can't look for it - a course or book presents everything in a structured manner so it's easier to understand, and provides exercises to check your comprehension. It also helps to "cement" the learning - we learn by doing, not by looking - you can watch as much of the Tour de France as you like, it won't teach you to ride a bicycle! :D

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups