|
Hello Experts,
How to convert an image to pdf.
Thanks
If you can think then I Can.
|
|
|
|
|
Here[^] is an article from the CP Archives.
Hope it helps.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Thanks for reply,
But in this article author is converting with the help of Component. I want source which convert the image to pdf.
Best Regard
If you can think then I Can.
|
|
|
|
|
Oh well. Good luck with that then. That's going to take you a lot of time coding up. The PDF format is a standardised format, and you can download it for free - so you can use this to write your code from. If I were you though, I wouldn't waste my time reinventing the wheel here.
|
|
|
|
|
You may find what you want wrapped in this: iTextSharp[^]. You'll have to dig around a bit but it as an open source port of a very good Java library. If memory serves what you want is in there somewhere but, as another poster has said, why reinvent the wheel? Bit pointless.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thanks sir.
If you can think then I Can.
|
|
|
|
|
You may found
SharpPdf and/or MigraDoc
helpful ... if you google for it.
|
|
|
|
|
I am having a problem being able to run commandlets that are in modules from C#.
when I Invoke the import-module command via ps.AddScript or ps.Addcommand I do not get an error thrown on the second Invoke.
can anyone help me figure out what I am doing wrong.
PowerShell ps;
ps = PowerShell.Create();
ps.AddScript(@"import-module GroupPolicy");
ps.Invoke();
ps.AddCommand("Get-GPO");
try { ps.Invoke(); }
catch (RuntimeException runtimeException)
{
System.Console.WriteLine("Runtime exception: {0}: {1}\n{2}",
runtimeException.ErrorRecord.InvocationInfo.InvocationName,
runtimeException.Message,
runtimeException.ErrorRecord.InvocationInfo.PositionMessage);
}
|
|
|
|
|
Planker wrote: PowerShell ps;
And where exactly did you get the class PowerShell?
And do you expect an exception or are you just noting that one does not occur?
|
|
|
|
|
I edited the Project file to add the Reference <Reference Include = "System.Management.Automation> to add the reference for powershell
I am using a Windows 7 machine with the Group policy tools installed
the first invoke command I had in a try/catch and I am not getting a runspace exception, but I just found that I am getting an exception, my try/catch testing before must have been too targeted. I just added a catch for any exception and found that I am Command not found exception.
I am going to assume that I have added the wrong powershell resource and once i find the correct one I will have my problem fixed.
|
|
|
|
|
according to this MSDN article http://msdn.microsoft.com/en-us/library/ff458115(v=vs.85).aspx the assembiles are in c:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\V1.0 but when I add these as a reference I get the same unknown command when trying to add the Grouppolicy module
any ideas why this is not working?
|
|
|
|
|
First step in mixed language programming is to create the functionality, at least a framework, in one language. In your case create a PowerShell script first that runs only as a PowerShell script.
Other than that several things as pure guesses.
1. Invoke starts a process. It might be the case that you shouldn't be invoking until everything is in place.
2. AddScript/AddCommand returns a PowerShell instance. That suggests to me that it might be acting like String.Replace() in that the original instance does not have the command.
|
|
|
|
|
my issues seem to be that I am doing something incorectly to load the Group policy Powershell module. I am calling invoke after the import-Module command so I can call a cmdlet that is not loaded until the Group policy Module has been loaded. I am getting an exception on the import-Module command that it can't be found so either I am calling the wrong powershell classes or I am setting up my runspace incorectly.
|
|
|
|
|
How to manage the ComboBox in QueryPanel
|
|
|
|
|
How indeed! Do you have an actual question?
I must get a clever new signature for 2011.
|
|
|
|
|
My question is how to make the ComboBox Control relate to a database when it runs,Then make some
data in the database as the item of ComboBox.At last click the query button to researh the datas based on them.
Besides I have another question about RapidWebDev.How to add a new user use Membership make me so confused.It Beeps me error when I create a new user with CreateUserWizard control.
|
|
|
|
|
xaq693888265 wrote: My question is how to make the ComboBox Control relate to a database when it runs
You need to extract whatever records you need from the database, and add them to your combobox.
xaq693888265 wrote: Then make some data in the database as the item of ComboBox.
This is the reverse of the above, just add the selected item to your database.
xaq693888265 wrote: At last click the query button to researh the datas based on them.
I am not sure what you mean by this, but I suspect you will need to write some code that is activated by a button.
xaq693888265 wrote: How to add a new user use Membership
I expect you will find the answer to this question here[^].
I must get a clever new signature for 2011.
|
|
|
|
|
I'm sorry for my bad English.First,there's a table exsit in the database.the ComboBox is established in the QueryPanel of RapidWebDev.For a example:
there's a database named Machine,and a table named MachineAdress:
MachineAdress as follows:
MachineID Adress
Gaj001 hongshan
GAJ002 Japan
then Gaj001 and GAJ002 will be the items of ComboBox when the soft runs.
there's a attributes named "DynamicDataSource" in the ComboBox of the RapidWebDev.how to configuration the attributes to meet my request?
Do you understand what I mean?
|
|
|
|
|
xaq693888265 wrote: then Gaj001 and GAJ002 will be the items of ComboBox when the soft runs.
Then you need to extract those items from the database and add them to the ComboBox. If RapidWebDev provides an automated way to achieve this then you can use it, otherwise you will need to do it manually by writing some code.
xaq693888265 wrote: Do you understand what I mean?
Yes I understand what you mean but I have no background in RapidWebDev. As has been suggested before you should look at the documentation on the RapidWebDev site for guidance.
I must get a clever new signature for 2011.
|
|
|
|
|
As this is a codeplex project, you should probably ask any questions you have about it there[^]. That's where the expertise will be found on it.
|
|
|
|
|
I'm sorry ,It's mine.how to make the ComboBox relate to a database and then makse some of datas in the database become the items of ComboBox.At last,click the query button to research.Is this
OK?Do you understand what I want to do?
|
|
|
|
|
Are there application design and development articles with sources, which illustrate how to design and develop typical applications (GUIs, databases, etc...) according to design patterns as in:
Robert C Martin "Agile Principles, Patterns and Practices in C#"
Erich Gamma "Design Patterns: Elements of Reusable Object-Oriented Software"
Чесноков
|
|
|
|
|
Yes: a quick Google should locate vast numbers of tutorials.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hmmm, have you tried Code Project.
I hear some good things about them.
Seriously, look in the Article Archives and there is just about all you need.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Yes, but we won't do all the work for him...
I wasn't, now I am, then I won't be anymore.
|
|
|
|