|
Subject:
Re: Can i convert Excel file into PDF using iTextSharp? - msg#00046
Website Performance Monitoring
You should ask yourself what you mean by a "pure"
vb app and why it matters, since there probably isn't such a thing
anyway.
These days there isn't really anything that qualifies as pure native
code unless you write in C++ and have all of the system libraries
statically linked.
- vb 6 relies on msvbvm60.dll which contains all of the vb framework
plus numerous other dlls and ocxs.
- most c++ relies on msvcrt40.dll and other framework dlls.
- java relies on the jvm and the jre.
- .NET applications and libraries (including iTextSharp) rely on
various framework assemblies that are part of the Common Language
runtime and are stored in the GAC and are analogous to msvbmv60 but are
more extensive.
- etc.
There are some 3rd party tool$ that will take all of the .NET
assemblies neede for an app and turn them in to native (c++) code and
package the whole thing as an exe but these products impose their own
limitations and idiosyncrasies.
As to excel files, of course if you can get the data out of the excel
file you can use it to write a pdf but I'm sure that how to manipulate
excel files is a topic for another forum since it has nothing to do
with iTextSharp.
Dan
ANANDC wrote:
Hello Everybody,
Is it possible to convert excel file into pdf using iTextSharp component? I
am also trying to see if this can be used in a standalone pure VB app and
not .NET app.
Waiting for replies .
Thanks,
Anand
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
Thread at a glance:
Previous Message by Date:
Re: Problem printing bold
Do you have non bold text to compare?
All of the PDF prints fine, except the bold test prints as non bold.
In the viewer font properties what fonts are there?
I am using Foxit 2.0 to print out the PDFs, I did not see font properties
there.
Nick
----- Original Message -----
From: "Nick Fox" <nicolaspatrickfox@xxxxx>
To: <itextsharp-questions@xxxxx>
Sent: Friday, March 02, 2007 10:03 PM
Subject: [itextsharp-questions] Problem printing bold
>I have created a PDF with some bold text. I can see the bold text in the
>PDF
>but when I try to print it (on 3 different printers and 2 different
>locations) the bold does not display on the hard copy.
>
>code:
>
>PdfPTable table1 = new PdfPTable(1);
>
>PdfPCell cell57 = new PdfPCell(new Phrase(rowItems[0].ToString(),
>new
>Font(Font.HELVETICA, 12, Font.BOLD)));
>cell57.BorderWidthLeft = 0;
>cell57.BorderWidthRight = 0;
>cell57.BorderWidthBottom = 0;
>cell57.BorderWidthTop = 0;
>
>table1.AddCell(cell57);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Next Message by Date:
Re: Problem printing bold
Hi Nick,
You may want to try using Adobe Reader to print your document. I have
had issues with FoxIT in the past where the viewer is not 100% PDF
compatible.
Thank You,
Hank
-----Original Message-----
From:
itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
[mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx]
On Behalf Of
Nick Fox
Sent: Wednesday, March 07, 2007 5:27 PM
To: itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: Re: [itextsharp-questions] Problem printing bold
Do you have non bold text to compare?
All of the PDF prints fine, except the bold test prints as non bold.
In the viewer font properties what fonts are there?
I am using Foxit 2.0 to print out the PDFs, I did not see font
properties
there.
Nick
----- Original Message -----
From: "Nick Fox" <nicolaspatrickfox@xxxxx>
To: <itextsharp-questions@xxxxx>
Sent: Friday, March 02, 2007 10:03 PM
Subject: [itextsharp-questions] Problem printing bold
>I have created a PDF with some bold text. I can see the bold text in
the
>PDF
>but when I try to print it (on 3 different printers and 2 different
>locations) the bold does not display on the hard copy.
>
>code:
>
>PdfPTable table1 = new PdfPTable(1);
>
>PdfPCell cell57 = new PdfPCell(new Phrase(rowItems[0].ToString(),
>new
>Font(Font.HELVETICA, 12, Font.BOLD)));
>cell57.BorderWidthLeft = 0;
>cell57.BorderWidthRight = 0;
>cell57.BorderWidthBottom = 0;
>cell57.BorderWidthTop = 0;
>
>table1.AddCell(cell57);
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
---------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and
is for the intended addressee only. Any unauthorized use,
dissemination of the information or copying of this message is
prohibited. If you are not the intended addressee, please notify
the sender immediately and delete this message.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Previous Message by Thread:
Re: Indentationleft problem
Dear Paulo,
Thx for helping..
I find that it has no such a problem when the document is purely added with
paragraph object. However, when added with pdfptable like the following
code....
Scenario I : (3 times "Ginger") - RESULT : ginger.3times.pdf
Paragraph paraGeneral;
paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);
paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);
paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);
float[] headerwidths = { 102, 15, 354 };
PdfPTable pdfpTable1 = new PdfPTable(headerwidths);
pdfpTable1.WidthPercentage = 100f;
PdfPCell pdfpCell1;
Phrase phraseTmp;
pdfpTable1 = new PdfPTable(headerwidths);
pdfpTable1.WidthPercentage = 100f;
pdfpCell1 = new PdfPCell();
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
pdfpCell1 = new PdfPCell();
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
phraseTmp = new Phrase(new Chunk("Nishant Kumar",
fontStudentName));
pdfpCell1 = new PdfPCell(phraseTmp);
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
pdfpTable1.SpacingBefore = 5f;
document.Add(pdfpTable1);
Scenario II : (1 time) - RESULT : ginger.1times.pdf
Paragraph paraGeneral;
paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);
/*paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);
paraGeneral = new Paragraph(new Chunk("Ginger",
fontEmail1));
paraGeneral.IndentationLeft = 30f;
document.Add(paraGeneral);*/
float[] headerwidths = { 102, 15, 354 };
PdfPTable pdfpTable1 = new PdfPTable(headerwidths);
pdfpTable1.WidthPercentage = 100f;
PdfPCell pdfpCell1;
Phrase phraseTmp;
pdfpTable1 = new PdfPTable(headerwidths);
pdfpTable1.WidthPercentage = 100f;
pdfpCell1 = new PdfPCell();
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
pdfpCell1 = new PdfPCell();
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
phraseTmp = new Phrase(new Chunk("Nishant Kumar",
fontStudentName));
pdfpCell1 = new PdfPCell(phraseTmp);
pdfpCell1.Border = 0;
pdfpTable1.AddCell(pdfpCell1);
pdfpTable1.SpacingBefore = 5f;
document.Add(pdfpTable1);
In scenario I, the "Ginger" will shift to the right side.
Thanks anyway for you help...
Best Regards,
Eddie
-----Original Message-----
From:
itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
[mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx]
On Behalf Of
Paulo Soares
Sent: Friday, March 09, 2007 6:07 PM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Indentationleft problem
Some code, please.
Paulo
> -----Original Message-----
> From:
> itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> [mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx]
> On Behalf Of Eddie Chan
> Sent: Friday, March 09, 2007 8:19 AM
> To: 'Post all your questions about iTextSharp here'
> Subject: [itextsharp-questions] Indentationleft problem
>
> Dear Paulo,
>
> If I continuously create Paragraph (ie. new Paragraph() with
> IndentationLeft = 30f; for example), the more Paragraph I create, the
> more indentation that shifts to the right. So.. How can I solve this
> problem?
>
> Best Regards,
> Eddie
>
>
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT Join
> SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn
> cash http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
Aviso Legal:
Esta mensagem i destinada exclusivamente ao destinatario. Pode conter
informagco confidencial ou legalmente protegida. A incorrecta transmissco
desta mensagem nco significa a perca de confidencialidade. Se esta mensagem
for recebida por engano, por favor envie-a de volta para o remetente e
apague-a do seu sistema de imediato. I proibido a qualquer pessoa que nco o
destinatario de usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may
contain confidential or legally protected information. The incorrect
transmission of this message does not mean the loss of its confidentiality.
If this message is received by mistake, please send it back to the sender
and delete it from your system immediately. It is forbidden to any person
who is not the intended receiver to use, distribute or copy any part of this
message.
Description: Adobe PDF document
Description: Adobe PDF document
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
Next Message by Thread:
Re: Can i convert Excel file into PDF using iTextSharp?
Save the Excel sheet as XML and then use iTextSharp to PDF it?
On 3/8/07, Daniel Essin <essin-EkmVulN54Sk@xxxxxxxxxxxxxxxx> wrote:
>
> You should ask yourself what you mean by a "pure" vb app and why it
> matters, since there probably isn't such a thing anyway.
>
> These days there isn't really anything that qualifies as pure native code
> unless you write in C++ and have all of the system libraries statically
> linked.
> - vb 6 relies on msvbvm60.dll which contains all of the vb framework plus
> numerous other dlls and ocxs.
> - most c++ relies on msvcrt40.dll and other framework dlls.
> - java relies on the jvm and the jre.
> - .NET applications and libraries (including iTextSharp) rely on various
> framework assemblies that are part of the Common Language runtime and are
> stored in the GAC and are analogous to msvbmv60 but are more extensive.
> - etc.
>
> There are some 3rd party tool$ that will take all of the .NET assemblies
> neede for an app and turn them in to native (c++) code and package the whole
> thing as an exe but these products impose their own limitations and
> idiosyncrasies.
>
> As to excel files, of course if you can get the data out of the excel file
> you can use it to write a pdf but I'm sure that how to manipulate excel
> files is a topic for another forum since it has nothing to do with
> iTextSharp.
>
> Dan
>
> ANANDC wrote:
> Hello Everybody,
>
> Is it possible to convert excel file into pdf using iTextSharp component? I
> am also trying to see if this can be used in a standalone pure VB app and
> not .NET app.
>
> Waiting for replies .
>
> Thanks,
> Anand
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|
|