Search:

Type: Posts; User: NeedHelpVB

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you for your suggestion. I have tried so hard and it seems working but the hor. text location is not at desired position...I still need to play with the text position more....If I am still...
  2. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y,

    I have been trying to copy your code, modify it, and write a banner text line horizontally at bottom right corners of the pages/images. Please see a modified copy of the banner code...
  3. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you for your quick response.

    Hope you have a wonderful weekend.
  4. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y,

    How are you doing lately? I hope you are well over there.

    I wonder if you can help me below.

    On this line: cImage = Image.FromStream(New...
  5. Access Object from CATIA within VB NET 2017 Community

    Hi All,

    I have tried to access CATIA file (CATPart) which is already running in CATIA software with below code but it gives me an error:
    System.Runtime.InteropServices.COMException: 'Error...
  6. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you for your detailed explanation. You are such truly helpful hand.

    So if I print the banner text on white papers, I can remove (or comment) below line of code:
    gfx.DrawString(Me.Text,...
  7. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    I got it. Thank you very much. Have a great weekend.

    Please kindly explain why we have two DrawString statements? I do not understand. We have 3 lines of text in the banner thought.

    ...
  8. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you.

    Position x and y is calculated based from where? Center of the page, which edge of the page (top, bottom, right, or left), or which point?

    And the distance unit is in pixel, points,...
  9. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y,

    How are you doing today? I am able to convert the images to PDF files.

    In your code above, I would like to know how to adjust the position of the banner text toward the center of the...
  10. Re: Converting images (like jpeg and bmp) to pdf using iTextSharp library

    Hi All,

    I am now able to create a single pdf file with an image on it as seen on the code below using iTextSharp library.


    Module Module1

    Sub Main()

    Dim filePath As String =...
  11. Converting images (like jpeg and bmp) to pdf using iTextSharp library

    Hello All,

    I have a number of jpeg files in a folder and want to convert them directly to pdf documents within Visual Studio 2017 on Windows 10. I already import the iTextSharp library into the...
  12. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y....

    How are you doing today?

    is there a way to write the saved jpeg images directly to PDF file format after adding the banner data?

    Please help if possible.

    Thank you in advance
  13. Replies
    2
    Views
    1,009

    Enter Password before running the code

    Hi All,

    I am new to VB NET and I have tried to make a short code to ask the user to enter the password up to 3 times. If 3 attemps are given invalid password, then close/stop the code [main()]...
  14. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y...I decide to overwrite and save the images as jpeg to the code a bit shorter. It works perfectly.

    Thank you for your help again.
  15. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you ....I will try your way this weekend and let you know. Have a good weekend.
  16. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hello 4x2y,

    My next adventure is to delete/remove previous jpeg images with VB .NET since you already showed me how to add banner text to previous jpeg. So, I do not need them any more (else...
  17. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Thank you 4x2y for your quick response.

    I did add system.drawing library to the reference yesterday, but it still had same errors. So yesterday night, I spent more time and figured it out by
    ...
  18. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y, I did exactly what you said above but same errors appear as I said previously.

    Could you please write down the whole code (class sub and form sub)?
    Also, I do not use "Form" application...
  19. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y,

    I have a VB .NET project with a few modules inside it. I want to incorporate your banner code (as seen above) to my project by doing below:

    1) Change Private Sub...
  20. Replies
    8
    Views
    9,330

    Re: Error message: BC30420

    Thanks Shaggy. I will do and try not to change name of the modules if I do not have to.
  21. Replies
    1
    Views
    554

    Calling sub's

    Hi All,

    I try to learn how to call sub's in different modules in the same project/solution but it seems not working. Please see my simple demo below. I tried Sub Main() to call TEST() but it is...
  22. Replies
    6
    Views
    1,304

    Re: Data type and array declaration

    Update....

    I solved the above issue as oSel.VisProperties.GetRealColor(R, G, B)

    No array declaration is required.

    Thanks All
  23. Replies
    6
    Views
    1,304

    Re: Data type and array declaration

    Hi All,

    Here is the documentation of GetRealColor: Sub GetRealColor(oRed As Long, oGreen As Long, oBlue As Long, oInheritance As Long) in VBA inside CATIA. I assumed this function wants data type...
  24. Replies
    8
    Views
    2,215

    VS 2017 Re: How to rotate jpeg images ?

    Hi sapator.....I am not really good at VB NET since I start learning it.

    I hope you can share with me your your code. I can wait until Monday since I am not in a such hurry.

    Wish you have a...
  25. Replies
    6
    Views
    1,304

    Data type and array declaration

    Hi All,

    I make a short code as seen below and it gives me the error of "Type mis-match". I have tried to use Long(), Double(), and Object() but none of them has not been worked at all.
    What...
  26. Replies
    8
    Views
    9,330

    Re: Error message: BC30420

    HI Shaggy and Sitten,

    I removed VS professional and reinstall with VS 2017 Community.

    I create a super-mini window form without any buttons or text, or sub, debugged it and it works fine. ...
  27. Replies
    8
    Views
    2,215

    VS 2017 Re: How to rotate jpeg images ?

    Yes Darkbb...however, the text and images are already on the jpeg horizontally. So, rotating the images now and printing them out will have same result.

    Unless, VB .NET can rotate the current...
  28. Replies
    8
    Views
    2,215

    VS 2017 How to rotate jpeg images ?

    Hi All,

    I have lots of jpeg images that have text and images displayed in landscape mode (or horizontally).

    Is there a VB. NET code/way to rotate the images 90 degrees so that the images/text...
  29. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hello 4x2y,

    I tried your suggested font, it works a bit better. Thank you again.

    I have another small issue below and wonder if you can help me on it.

    I have lots of jpeg images have text...
  30. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    I have tried Public, Private and none of them works.

    These codes are written in plain code editor, not a "Class form or Form" in VBA.

    Yes, VBA in CATIA show Objects, which can be browsed, and...
  31. Replies
    8
    Views
    9,330

    Re: Error message: BC30420

    Ok....I will try suggestions from both of you, jmc and Shaggy, and see what happens today.

    Thanks
  32. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    I rewrote the code using ByRef for passing parameters and it works. However, passing parameters only work between sub's inside the same module.

    If I try the place the sub's with parameters in...
  33. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    Thanks LaVolpe and Others...I will try your suggestion and let all of you know soon.

    Have a great day.
  34. Replies
    8
    Views
    9,330

    Error message: BC30420

    Hi All, I have an error message on frequent basis:

    BC30420 'Sub Main' was not found in ConsoleApp1.Module1

    even my code is very simple such as


    Module Module1
    Sub Main()
  35. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    you are right....VBA embedded in CATIA...not actual VB6. May be that is the reason why passing parameters do not work.....
  36. Re: Converting jpeg images to pdf with VB .NET??

    Hi slzlamsny, I do not have pdf writer. I would like to have a VB .NET to convert jpeg/tif images to pdf.

    Can you give me a copy of PdfSharp? or a weblink? Any suggestion to write up a code in...
  37. VS 2017 Re: [RESOLVED] Need help in how to add banner information onto JPEG (JPG) images ???

    Hi 4x2y, I will try and let you know. Thanks again for your help
  38. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    Thanks for all suggestions and help. I will review materials on "sub/function and passing parameters" again, then try to rewrite my code.
    I f I still have issues, I will let you know.

    Thanks...
  39. Replies
    16
    Views
    3,828

    Re: Passing parameters between sub

    I am learning both vb6 and VB .NET. vb6 is partially use at my work and I do not want to learn and use it, but I am forced to use it.
    VB .NET is what I start trying to learn it.

    From my first...
  40. Converting jpeg images to pdf with VB .NET??

    Hi All,

    Is there a way to write/convert jpg images directly to pdf file format and combined those individual converted pdf's to a single pdf file in sequential page # in VB .NET?

    Thank you All...
Results 1 to 40 of 71
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width