Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
AnswerRe: Listview.SelectedItems Pin
Nader Elshehabi28-Aug-06 2:48
Nader Elshehabi28-Aug-06 2:48 
GeneralRe: Listview.SelectedItems Pin
Sri harini28-Aug-06 16:51
Sri harini28-Aug-06 16:51 
GeneralRe: Listview.SelectedItems Pin
Nader Elshehabi28-Aug-06 19:13
Nader Elshehabi28-Aug-06 19:13 
GeneralRe: Listview.SelectedItems Pin
Sri harini28-Aug-06 21:30
Sri harini28-Aug-06 21:30 
AnswerRe: Listview.SelectedItems Pin
Nader Elshehabi29-Aug-06 3:37
Nader Elshehabi29-Aug-06 3:37 
QuestionAdding a file to solution explorer using Add-Ins [modified] Pin
Phanindra Kumar27-Aug-06 20:28
Phanindra Kumar27-Aug-06 20:28 
AnswerRe: Adding a file to solution explorer using Add-Ins Pin
Nader Elshehabi28-Aug-06 2:52
Nader Elshehabi28-Aug-06 2:52 
QuestionMetafile (wmf/emf) manipulation help needed Pin
kunaalmalhotra27-Aug-06 20:02
kunaalmalhotra27-Aug-06 20:02 
Hi!

Need your ideas urgently! I have a metafile which I wish to convert to PDF on the fly. The idea is to create a metafile template with placeholder text, which will be parsed and replaced by user information at runtime before generating the PDF. When editing the metafile, I have progressed to the following steps:

1. Called the Graphics.EnumerateMetaFile() method, which calls the callback method (lets call it ‘Play’)

2. Called the callback method and obtain the record data

public bool Play(EmfPlusRecordType recordType, int flags, int datasize, IntPtr data, PlayRecordCallback callback)
{
byte[] dataArray = null;
if (data != IntPtr.Zero)
{
dataArray = new byte[datasize];
Marshal.Copy(data, dataArray, 0, datasize);
}

3. Checked whether the record pertains to writing text on the wmf as follows:

if (recordType == EmfPlusRecordType.DrawString)

4. Called the Metafile.PlayRecord() method to draw the new metafile.

mf.PlayRecord(recordType, flags, datasize, dataArray);

What I’m unable to do is, to parse the dataarray (which contains record data), such that I can replace existing text with new text.

Thanks a LOT for any insights.

Regards,
Kunaal
QuestionAbout Webpage Setting Pin
Ahmad Zia Quaiser27-Aug-06 19:19
Ahmad Zia Quaiser27-Aug-06 19:19 
AnswerRe: About Webpage Setting Pin
Guffa27-Aug-06 23:24
Guffa27-Aug-06 23:24 
AnswerRe: About Webpage Setting Pin
Nader Elshehabi28-Aug-06 1:25
Nader Elshehabi28-Aug-06 1:25 
QuestionAbout Webpage Setting Pin
Ahmad Zia Quaiser27-Aug-06 19:18
Ahmad Zia Quaiser27-Aug-06 19:18 
AnswerRe: About Webpage Setting Pin
jithen_dt28-Aug-06 1:28
jithen_dt28-Aug-06 1:28 
QuestionA question about maskedTextBox control Pin
mariodai36527-Aug-06 15:17
mariodai36527-Aug-06 15:17 
AnswerRe: A question about maskedTextBox control Pin
Nader Elshehabi27-Aug-06 15:27
Nader Elshehabi27-Aug-06 15:27 
GeneralRe: A question about maskedTextBox control Pin
mariodai36527-Aug-06 15:40
mariodai36527-Aug-06 15:40 
GeneralRe: A question about maskedTextBox control Pin
Nader Elshehabi27-Aug-06 16:12
Nader Elshehabi27-Aug-06 16:12 
GeneralRe: A question about maskedTextBox control Pin
Ed.Poore27-Aug-06 22:05
Ed.Poore27-Aug-06 22:05 
GeneralRe: A question about maskedTextBox control Pin
Nader Elshehabi28-Aug-06 0:58
Nader Elshehabi28-Aug-06 0:58 
Questionmouse cursor Pin
TAREQ F ABUZUHRI27-Aug-06 13:59
TAREQ F ABUZUHRI27-Aug-06 13:59 
AnswerRe: mouse cursor Pin
Nader Elshehabi27-Aug-06 14:29
Nader Elshehabi27-Aug-06 14:29 
QuestionHow to get URL on the screen?please.. Pin
zhoujun27-Aug-06 13:03
zhoujun27-Aug-06 13:03 
AnswerRe: How to get URL on the screen?please.. Pin
Nader Elshehabi27-Aug-06 13:35
Nader Elshehabi27-Aug-06 13:35 
Questionkeyboard and mouse Pin
xkx3227-Aug-06 9:17
xkx3227-Aug-06 9:17 
AnswerRe: keyboard and mouse Pin
Andy Moore27-Aug-06 9:56
Andy Moore27-Aug-06 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.