Search:
Type: Posts; User: NeedHelpVB
Search:
Search took 0.02 seconds.
-
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...
-
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...
-
Thank you for your quick response.
Hope you have a wonderful weekend.
-
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...
-
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...
-
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,...
-
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.
...
-
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,...
-
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...
-
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 =...
-
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...
-
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
-
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()]...
-
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.
-
Thank you ....I will try your way this weekend and let you know. Have a good weekend.
-
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...
-
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
...
-
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...
-
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...
-
Thanks Shaggy. I will do and try not to change name of the modules if I do not have to.
-
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...
-
Update....
I solved the above issue as oSel.VisProperties.GetRealColor(R, G, B)
No array declaration is required.
Thanks All
-
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...
-
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...
-
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...
-
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. ...
-
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...
-
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...
-
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...
-
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...
-
Ok....I will try suggestions from both of you, jmc and Shaggy, and see what happens today.
Thanks
-
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...
-
Thanks LaVolpe and Others...I will try your suggestion and let all of you know soon.
Have a great day.
-
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()
-
you are right....VBA embedded in CATIA...not actual VB6. May be that is the reason why passing parameters do not work.....
-
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...
-
Hi 4x2y, I will try and let you know. Thanks again for your help
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|