Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

JPG in a report - prints on laptop but not on server ...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    JPG in a report - prints on laptop but not on server ...

    Happy New Year to everyone!

    I have a report that includes a JPG image - the image resides in a folder on the c: drive. The report uses the HTML object, with the following html:

    <html>
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta HTTP-EQUIV="MSThemeCompatible" content="Yes"/>
    <meta name="generator" content="Alpha Five HTML Editor">
    <title></title>
    <style>
    <!--
    p { margin-top: 0; margin-bottom: 0 }
    -->
    </style>
    </head>
    <body>

    <img src="C:/Signatures/Gary Traub _height 800px.jpg" >

    </body>
    </html>

    The report works perfectly on my laptop, but on the server, the signature is not there. The "signature" folder does reside on the c: drive of both the laptop and the server.

    Any suggestions would be very appreciated.
    Gary S. Traub, Ph.D.


    #2
    Try using the Google debugger on the server and see if it's throwing any errors. The folder might be there... is the jpg?

    Comment


      #3
      Hi Lee,

      The folder is there and so is the jpg. I am stumped.
      Gary S. Traub, Ph.D.

      Comment


        #4
        The issue is below, but an easy way to go around it is to convert to a .bmp and add the file if it's something that will not change from report to report (Company logo, etc.)

        Look at this:
        image.png

        Comment


          #5
          Hi Russell,

          Thank you for this. It looks to be exactly what I need. Can you clarify a bit though. For example, should I move the folder from the root of the c:\ to another location? to where? webroot? or what? Thanks for your help!!
          Gary S. Traub, Ph.D.

          Comment


            #6
            I'll be honest, I am not 100% sure without messing with it. Images in reports are always funny.
            --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

            If you only have a generic image, you can add it through "Add File" in the web projects control panel, but make sure they are .bmp files, and add them as a bitmap image in the report (The control is just called Bitmap and looks like a photo).
            --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

            For reports needing different images based on user or multi-tenant, I save them in the Database. I'm not sure how many signatures you're going to need, or how it'll affect your database size/performance, but this is what I do (Images used are for a "logo" field used at the top of a report).

            For your UX to upload and view:
            I'd add a field to "tbl_Staff" called "Signature".
            Add controls, Image and Button. Call the image Signature, and use the "Image Upload" genie in the button.
            This will allow you to save the image to the database.

            For the report:
            Edit the DataSource to include the field (The field in the database will be a long string of #'s and Chars).
            Use the drag and drop in the report builder to add the "Signature" field, then just drag to size for your report.

            Below are helper images:

            image.png

            image.png
            image.png​​

            Comment


              #7
              Hi Russell,

              I really appreciate the time you have taken to help me with this. Here is where I am at: I do need multiple jpg's, one for each user of the system. I chose to store them in a folder on the hard drive, not within the database. I will then store the location of the particular jpg in a field of the table called signature. Currently I am still just putting the location in the HTML object on the report as such:

              <html>
              <head>
              <meta http-equiv="X-UA-Compatible" content="IE=edge" />
              <meta HTTP-EQUIV="MSThemeCompatible" content="Yes"/>
              <meta name="generator" content="Alpha Five HTML Editor">
              <title></title>
              <style>
              <!--
              p { margin-top: 0; margin-bottom: 0 }
              -->
              </style>
              </head>
              <body>

              <img src="Signatures/Gary Traub _height 800px.jpg" >

              </body>
              </html>​


              Works on the laptop, not on the server. Then, based on what you have said, I tried moving the folder to within the webroot - within the webroot, this particular application resides within a folder called AAA, and I put the folder of jpg's within that folder. That also works on the laptop, but not on the server. Any thoughts?
              Gary S. Traub, Ph.D.

              Comment


                #8
                Why not do what I do with my Invoicing DT app?
                Let the user select their own logo for the reports, invoices, letters etc?
                See our Hybrid Option here;
                https://hybridapps.example-software.com/


                Apologies to anyone I haven't managed to upset yet.
                You are held in a queue and I will get to you soon.

                Comment


                  #9
                  I have a "Company" UX that allows the admin users to upload their own logo so I don't have to change it for them, but it's universally used for all documents for that company.

                  I've never considered allowing users to individually pick them for each type of document.
                  Do you allow individual users to set their own? Or is it just a company-wide logo they can set?

                  I think the military made me like uniformity across all documents, and it seems like chaos if one document has one logo, and another has a different one.
                  Not to mention if one user has a logo for an invoice, and another user has a different logo for the same document, and they are both in the same company.

                  Comment


                    #10
                    drgarytraub, I see that you sent a visitor "message", but I'm getting an error that I do not have access to reply. I sent a regular message to you and if you prefer, my email is [email protected]

                    Comment


                      #11
                      Russell, I have embraced "LOCALISATION".
                      By that, I mean that there are levels of content - depending upon the location and user profile.
                      A Generic company logo is easy to implement, but so is localised content, specific to a user.

                      This really only works with a login for a user. No login and it won't work.
                      It works on the web and also on a DT version.

                      In the Admin panel where users are added or deleted and permissions granted, it is a simple matter to add content specific to that user, say a photo, biography, by-line etc.
                      Whether you allow the user or Admin to add the content is up to the company. I would recommend Admin do it.
                      See our Hybrid Option here;
                      https://hybridapps.example-software.com/


                      Apologies to anyone I haven't managed to upset yet.
                      You are held in a queue and I will get to you soon.

                      Comment


                        #12
                        I let my users use their own company logo by having them upload an image to the DB for invoices, and printing envelopes etc (though nobody mails things) if needed. I basically require a business card sized img. This allows me to personalize the invoice template a bit and because its a sized requirement (I dont stop them from uploading a crap img btw) they can know what to expect.

                        invoiceexample.png

                        NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                        Comment


                          #13
                          Well, finally got this solved. After hours and hours, turns out that the reason why my report was working on my laptop, but not on the server ... drum roll ... the paths were slightly different on the 2 machines. Thanks for all the input!
                          Gary S. Traub, Ph.D.

                          Comment


                            #14
                            Don't you just hate those developer error issues ?
                            Gregg
                            https://paiza.io is a great site to test and share sql code

                            Comment


                              #15
                              LOL, particularly the ones that take days and days and turn out to be the most fundamental ...
                              Gary S. Traub, Ph.D.

                              Comment

                              Working...
                              X